hanxiari 发表于 2010-9-2 20:07:39

请教一个.htaccess去index.php的问题

系统是FreeBSD,在根目录下,已经加上.htaccess了,
RewriteEngine on
RewriteCond $1 !^(index\.php|statics|xml|^(.*)\.swf)
RewriteRule ^(.*)$ /index.php/$1
空间是支持.htaccess的,可是现在访问http://example.com/module/,不管module是什么,都是显示首页,感觉它是把http://example.com/module/中的module当成一个目录来处理了,所以就都转向了默认的index(就是首页)。
而如果我访问http://example.com/index.php/module/就正常,在我本地win环境下是可以正常去index.php的

Hex 发表于 2010-9-2 22:16:33

服务器问题,楼主可以贴一下 phpinfo() 结果看看,还有 apache 设置看看。

hanxiari 发表于 2010-9-3 00:03:30

谢版主~
phpinfo被禁了,没权限更改Apache~目前也没什么法子,只好带着index.php了

Hex 发表于 2010-9-3 00:29:39

那留着 index.php 也没什么不好,呵呵

moonster 发表于 2010-9-3 19:54:37

我也有同样的问题存在。本地正常。
页: [1]
查看完整版本: 请教一个.htaccess去index.php的问题