hellblog 发表于 2012-8-9 18:10:17

[求助] CI 301重写 返回如何不带index.php

RewriteRule ^(.*)$ index.php/$1
RewriteCond %{HTTP_HOST} ^baidu\.com
RewriteRule ^(.*) http://www\.baidu \.com/$1
怎么样 301 跳转回来不带index.php

hellblog 发表于 2012-8-9 18:39:44

结贴搞定自己写错顺序了 ~~~~~~

守望幸福的孩子 发表于 2012-8-10 16:52:39

分享一下正确的呀。。。

hellblog 发表于 2012-8-13 15:41:38

守望幸福的孩子 发表于 2012-8-10 16:52 static/image/common/back.gif
分享一下正确的呀。。。
RewriteCond %{HTTP_HOST} ^baidu\.com
RewriteRule ^(.*)$ http://www.baidu.com/$1
RewriteRule ^(.*)$ /index.php/$1

多出来的斜杠是 dz 过滤的

kinglike 发表于 2013-7-11 21:33:39

dz 过滤?能解释一下么?
第dz论坛?
页: [1]
查看完整版本: [求助] CI 301重写 返回如何不带index.php