+ -
当前位置:首页 → 问答吧 → 向各位求助,伪静态去掉index.php的问题

向各位求助,伪静态去掉index.php的问题

时间:2011-12-15

来源:互联网

如:将www.abc.com/index.php/list-3-3 通过伪静态改成了www.abc.com/list-3-3

但是改完以后再访问www.abc.com/index.php/list-3-3网址时却回到主页了,

请问各位有什么跳转到新地址 www.abc.com/list-3-3的方法,谢谢



iis环境下的httpd.ini文件:

[ISAPI_Rewrite]

# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files

# from accessing through HTTP
RewriteBase /
RewriteRule ^(js/.*\.html$) $1 [L]
RewriteRule ^(.*).html$ /index.php/$1 [L] 

作者: moonwrong   发布时间: 2011-12-15

RewriteRule ^(.*)$ /index.php/$1 [L]  

作者: ci1699   发布时间: 2011-12-15

试了,还是不行

作者: moonwrong   发布时间: 2011-12-15

怎么不行呢

我的跟你的一样。

我是nginx。
rewrite ^/(.*)$ /index.php/$1 last;

作者: ci1699   发布时间: 2011-12-15