301重定向和htaccess问题
我对 htaccess 相当陌生,所以如果这是一个新手问题,我深表歉意。
最近我推出了一个新设计的网站,并为所有旧页面创建了 301 重定向。
其中一个重定向的示例是:
redirect 301 /about-busch-systems.html http://www.buschsystems.com/About/The-Busch-Company.php
url:
“redirect 301 /about-busch-systems.html http://www.buschsystems.com/About/The-Busch-Company.php”
实际上是:
“http://www.buschsystems.com/index.php?p=About&subPage=The-Busch-Company”
重定向将我发送到正确的页面,具有正确的 URL,但旧页面被串连end 作为变量。
示例:
redirect 301 /about-busch-systems.html http://www.buschsystems.com/About/The-Busch-Company.php
将我发送到“http://www.buschsystems.com/About/The-Busch-Company.php?p=about-busch-systems
对于为什么会发生这种情况有什么想法吗?
提前致谢!
I'm fairly new to htaccess, so if this is a noob question I apologize.
Recent I launched a newly designed website, and created 301 redirects for all of the old pages.
An example of one of the redirects is:
redirect 301 /about-busch-systems.html http://www.buschsystems.com/About/The-Busch-Company.php
The url:
"redirect 301 /about-busch-systems.html http://www.buschsystems.com/About/The-Busch-Company.php"
is in actuality:
"http://www.buschsystems.com/index.php?p=About&subPage=The-Busch-Company"
The redirect is sending me to the right page, with the proper URL, except the old page is being strung on the end as a variable.
Example:
redirect 301 /about-busch-systems.html http://www.buschsystems.com/About/The-Busch-Company.php
Sends me to "http://www.buschsystems.com/About/The-Busch-Company.php?p=about-busch-systems
Any ideas of why this is happening?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为这就是
Redirect
应该做的< /a>:如果您想要更多,请使用
RedirectMatch
控制。Because that is what
Redirect
is supposed to do:Use
RedirectMatch
if you want more control.