Remove fbclid argument from the URL in .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{QUERY_STRING} ^(.*?)(&?fbclid=[a-zA-Z0-9_-]+)$ | |
RewriteRule ^(.*)$ /$1?%1 [L,NE,R=301] | |
</IfModule> |
Perfect
Thank you
Remove all queries.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*?)(&?[a-zA-Z0-9_-]+=[a-zA-Z0-9_-]+)$
RewriteRule ^(.*)$ /$1?%1 [L,NE,R=301]
</IfModule>
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
added to my zwiicms apache server. work perfectly.