2011-04-27 40 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