简体   繁体   English

301永久重定向在htaccess中不起作用

[英]301 permanent redirect not working in htaccess

we are facing urls like " http://domain.com/p/post-content/%3Ca%20href= ", these urls generate 404 errors, when we have tried to redirect something like that 我们面临的网址为“ http://domain.com/p/post-content/%3Ca%20href= ”,当我们尝试重定向此类内容时,这些网址会产生404错误

Redirect 301 /p/post-title/<a href= /p/post-title/

But its not working, please anybody let me know, how to redirect url like this 但是它不起作用,请任何人让我知道,如何像这样重定向URL

The extra space is messing up the statement, apache will think there are too many arguments. 多余的空间使语句混乱,apache会认为参数过多。 Try: 尝试:

Redirect 301 "/p/post-title/<a href=" /p/post-title/

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

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