繁体   English   中英

错误是 .htaccess - 重定向不起作用而且非常奇怪

[英]Error is .htaccess - Redirects not working and its very strange

我的网站最近刚刚推出了一堆新的产品页面,取代了旧的。

这是我想要的重定向示例。 一个从旧页面...重定向到新页面。 我查了谷歌站长,说第二个链接没有找到错误。

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

任何人都知道为什么这不起作用?

添加到您的 .htaccess 这一行

Options -MultiViews

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM