去除 .htaccess 文件中 url 的末尾
我的网站上有数百个 404 错误,这些错误是由表达式“URLONCLICK”和“%5C”以某种方式插入正确网址末尾引起的,我不知道它来自哪里,但我想将其从 .htaccess 文件中的 url 末尾删除。我该怎么做?
IE www.mydomain.com/category/post-title/URLONCLICK www.mydomain.com/category/post-title/%5C
我想去掉这些网址的末尾,使它们看起来像: www.mydomain.com/category/post-title/
I have a problem hundreds of 404 errors on my site that are caused by the expressions "URLONCLICK" and "%5C" being somehow inserted at the end of the correct url, and I don't know where it is coming from but I want to just strip it off of the end of the url in the .htaccess file. How do I do that?
i.e.
www.mydomain.com/category/post-title/URLONCLICK
www.mydomain.com/category/post-title/%5C
I want to strip the end off of these urls so they look like:
www.mydomain.com/category/post-title/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该可以。也许有更好的方法(合并最后两行)。
This should do. Maybe there is a better way (merging the last two lines).