2011-04-27 45 views
0

我的网站刚刚推出了一堆新产品页面,取代旧的。错误是.htaccess - 重定向不起作用,它很奇怪

这是我想要的重定向的一个例子。从旧页面开始......重定向到新页面。我检查了Google网站管理员,并表示第二个链接没有找到错误。

Redirect 301 /it-infrastructure.html http://www.example.com/managed-enterprise-services.html 

Redirect 301 /it-infrastructure http://www.example.com/managed-enterprise-services.html 

所以.html之一是重定向罚款......但没有.html扩展名的不是。但是......奇怪的是,我有一堆从过去的重定向不使用HTML转,做工精细,如:

Redirect 301 /broadsoft-web-portal http://www.example.com/broadsoft-web-portal.html 

Redirect 301 /business-voip http://www.example.com/business-voip.html 

任何人有任何想法为什么这不起作用?

+0

有你在最后两行重定向有'//'和'www'之间空格的原因是什么? – meagar 2011-06-08 20:18:52

回答

0

添加到您的.htaccess此行

Options -MultiViews