Skip to content

Instantly share code, notes, and snippets.

View ctrl-state-machine's full-sized avatar
🎯
Focusing

ctrl-state-machine

🎯
Focusing
View GitHub Profile
@lynt-smitka
lynt-smitka / fbclid.htaccess
Last active November 6, 2023 13:10
Remove fbclid argument from the URL in .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*?)(&?fbclid=[a-zA-Z0-9_-]+)$
RewriteRule ^(.*)$ /$1?%1 [L,NE,R=301]
</IfModule>