【发布时间】:2011-12-30 20:34:50
【问题描述】:
所以我的 .htaccess 文件看起来像这样
RewriteBase /
Redirect 301 /page.html http://www.yoursite.com/newpage.html
Redirect 301 /page2.html http://www.yoursite.com/newpage.html
它不会重定向我的 page.html
如果我离开它
RewriteBase /
Redirect 301 / http://www.yoursite.com/newpage.html
它可以工作,并重定向我所有的网站。现在为什么不工作,相信我,我在 .htaccess 文件附近有 page.html,令人沮丧的是我有 10 .html 之类的东西要重定向,而不是更多...... :(
谁能帮帮我?
【问题讨论】:
标签: apache .htaccess mod-rewrite redirect http-status-code-301