【发布时间】:2011-03-08 22:14:31
【问题描述】:
我正在尝试对从旧子域到新子域的所有内容进行 301 重定向。
我有一个简单的 .htaccess
Redirect 301 / http://www.smartphonesoft.com/
但是,如果我使用子目录转到旧 URL,它会尝试使用子目录重定向到新域并失败。
即
http://forum.smartphonesoft.com/reminder/
去
http://www.smartphonesoft.com/reminder/
当我希望它转到时
http://www.smartphonesoft.com/
我怎样才能将所有内容简单地重定向到新的域根目录?
【问题讨论】:
标签: .htaccess redirect http-status-code-301