0

我的网站上有数百个 404 错误的问题,这些错误是由表达式“URLONCLICK”和“%5C”以某种方式插入正确 url 的末尾引起的,我不知道它来自哪里,但我想要只需将其从 .htaccess 文件中的 url 末尾剥离即可。我怎么做?

即 www.mydomain.com/category/post-title/URLONCLICK www.mydomain.com/category/post-title/%5C

我想去掉这些网址的结尾,使它们看起来像:www.mydomain.com/category/post-title/

4

1 回答 1

0
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\%5c $ $1 [NC]
RewriteRule ^(.*)\URLONCLICK $ $1 [NC]

这应该做。也许有更好的方法(合并最后两行)。

于 2010-12-18T20:27:56.647 回答