【发布时间】:2013-02-14 00:24:09
【问题描述】:
您好,我使用以下 index.php 重定向到主页(及其工作)
RewriteCond %{THE_REQUEST} ^./index.php\ HTTP/ RewriteRule ^(.)index.php$ /$1 [R=301,L]
我希望它的子页面也得到重定向示例 index.php/xyz 到 home/xyz
请帮我修改上面的代码
【问题讨论】:
标签: redirect
您好,我使用以下 index.php 重定向到主页(及其工作)
RewriteCond %{THE_REQUEST} ^./index.php\ HTTP/ RewriteRule ^(.)index.php$ /$1 [R=301,L]
我希望它的子页面也得到重定向示例 index.php/xyz 到 home/xyz
请帮我修改上面的代码
【问题讨论】:
标签: redirect
在规则末尾添加:
重写规则 ^index.php/(.*) $1 [NS,NC,L,R=301]
【讨论】: