【问题标题】:Redirect domain.com/index.php/xyz to domain.com/xyz将 domain.com/index.php/xyz 重定向到 domain.com/xyz
【发布时间】: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


    【解决方案1】:

    在规则末尾添加:

    重写规则 ^index.php/(.*) $1 [NS,NC,L,R=301]

    【讨论】:

      猜你喜欢
      • 2014-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多