301重定向在浏览器中创建“页面未正确重定向”错误

时间:2013-06-14 19:13:34

标签: http-status-code-301

我们有一个域名已更改的网站:

在旧域的虚拟主机上,我们重定向如下:

<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/

谁能看到我们做错了什么?

干杯

0 个答案:

没有答案