我们有一个域名已更改的网站:
在旧域的虚拟主机上,我们像这样重定向:
<VirtualHost *:80>
ServerName old-domain.com
Redirect permanent / http://www.new-domain.com/
</VirtualHost>
<VirtualHost *:80>
ServerName www.old-domain.com
Redirect permanent / http://www.new-domain.com/
</VirtualHost>
然后我们在新站点的 .htaccess 文件中有一堆重定向,如下所示:
Redirect 301 /about-us /about-us/about-us/
但有些页面会导致浏览器出现重定向错误。例如这个重定向:
Redirect 301 /current-vacancies /about-us/recruitment/
输出这个:
http://www.new-domain.com/about-us/about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//about-us//recruitment/
谁能看到我们做错了什么?
干杯
本