htaccess重定向/删除/?filter_tag [0] =

时间:2018-05-03 04:33:03

标签: .htaccess joomla

Joomla有一个问题是将/?filter_tag[0]=添加到网址。我现在在Google Search Console看到它们。

重定向/移除htaccess

/?filter_tag[0]=代码是什么?

示例网址: https://www.foo.com/storefront-scissor-gate-mounting-options/?filter_tag[0]=

1 个答案:

答案 0 :(得分:0)

您可以将此规则用作最高规则

RewriteEngine On

RewriteCond %{QUERY_STRING} ^filter_tag\[0\]= [NC]
RewriteRule ^ %{REQUEST_URI}? [L,NE,R=301]
?之后的

%{REQUEST_URI}将从URI中删除查询字符串。

相关问题