2009-11-04 107 views

回答

0

你要去掉這一行RewriteBase /在/web/.htaccess文件

# uncomment the following line, if you are having trouble 
# getting no_script_name to work 
#RewriteBase/

這可能會幫助:)

我假設你有阿帕奇rewrite_module啓用

+0

我還以爲他要不要使用'no_script_name' – develop7 2009-11-05 12:28:59

+0

或者他可能只是想知道爲什麼他沒有得到的index.php文件的鏈接 - 你是對的,因爲no_script_name設置 的但對於404錯誤的原因是,他可能會設置錯誤的mod_rewrite。否則,.htaccess中的更改可以解決此問題。 – 2009-11-05 13:34:52

3

有一個拼寫錯誤在您的YML文件中:

resgister: 
    url:  /register 
    param: { module: register, action: index } 

應該是

register: 
    url:  /register 
    param: { module: register, action: index } 

使用帶:

echo link_to('register - here','@register'); 

這應該可以解決404 no_script_name是看不到的index.php在其他幾個答案陳述的理由。