我们有一个域名已更改的网站:
在旧域的虚拟主机上,我们重定向如下:
<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/
谁能看到我们做错了什么?
干杯
本