【发布时间】:2011-07-09 12:26:41
【问题描述】:
目前我的 htaccess 文件包含此规则,将 website.org/index.php 重定向到 website.org/en/home
RewriteRule index.php /en/home [R=301]
但是,目前还有更深文件夹中的其他index.php 页面重定向!例如website.org/folder/index.php 重定向到 website.org/en/home
我怎样才能让该规则专门应用于根目录,而不是更深的文件夹? 非常感谢。
【问题讨论】:
标签: apache .htaccess mod-rewrite redirect indexing