2009-11-04 120 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在其他几个答案陈述的理由。