[英]Error is .htaccess - Redirects not working and its very strange
My site has just recently launched a bunch of new product pages, replacing the old ones.我的网站最近刚刚推出了一堆新的产品页面,取代了旧的。
Here is an example of a redirect I want.这是我想要的重定向示例。 One going from the old page...redirecting to the new page.
一个从旧页面...重定向到新页面。 I checked Google webmaster and said that there was a not found error for the second link.
我查了谷歌站长,说第二个链接没有找到错误。
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
So the.html one is redirecting fine...but the one without the.html extension is not.所以.html 一个重定向很好......但是没有.html 扩展名的那个不是。 BUT...what's strange is that I have a bunch of redirects from the past that don't use the html ext and work fine, such as:
但是......奇怪的是,我有一堆过去的重定向,它们不使用 html 分机并且工作正常,例如:
Redirect 301 /broadsoft-web-portal http://www.example.com/broadsoft-web-portal.html
and和
Redirect 301 /business-voip http://www.example.com/business-voip.html
Anyone have any idea why this isn't working?任何人都知道为什么这不起作用?
Add to your .htaccess this line添加到您的 .htaccess 这一行
Options -MultiViews
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.