Joomla
有一个问题,即向URL添加/?filter_tag[0]=
。 我现在在Google Search Console
中看到它们.
重定向/删除/?filter_tag[0]=
htaccess
代码是什么
示例网址:https://www.example.com/storefront-scissor-gate-mounting-options/?filter_tag[0]=
您可以使用此规则作为最高规则:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^filter_tag[0]= [NC]
RewriteRule ^ %{REQUEST_URI}? [L,NE,R=301]
%{REQUEST_URI}
之后?
将从 URI 中删除查询字符串。