Rewriting URL with selected query string parameters in .htaccess
snippet in htaccess

Rewriting URL with selected query string parameters in .htaccess

user4531


RewriteCond %{QUERY_STRING} ^.*(\btag\b=(\w+|&\w+;)+)
RewriteRule ^(.+) /$1?%1 [L]