htaccess 到 redirect/remove /?filter_tag[0]=
htaccess to redirect/remove /?filter_tag[0]=
Joomla
将 /?filter_tag[0]=
添加到 url 时出现问题。我现在在 Google Search Console
.
中看到它们
htaccess
到 redirect/remove /?filter_tag[0]=
的代码是什么
示例URL:
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 中删除查询字符串。
Joomla
将 /?filter_tag[0]=
添加到 url 时出现问题。我现在在 Google Search Console
.
htaccess
到 redirect/remove /?filter_tag[0]=
示例URL:
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 中删除查询字符串。