Forum Moderators: phranque
RewriteCond %{QUERY_STRING} ^(tag|aid|flu)=([a-z0-9]+)$ [NC] # look for interesting variables in url
RewriteRule ^(.*)$ $1? [CO=%1:%2:example.com:14400:/,R=301,L] # capture url strip for vars, write cookie, redir
RewriteCond %{QUERY_STRING} (^|&)thisparam=([^&]*)($|&) RewriteCond %{QUERY_STRING} (^|&)(tag|aid|flu)=
RewriteRule ^(index\.php)?$ /fixup.php [L] RewriteRule (^|/|\.php)$ etcetera
RewriteCond %{QUERY_STRING} (?:^|&)aid=([a-z0-9]+)(?:&|$) [NC]
RewriteRule ^ - [CO=aid:%1:example.com:14400:/]
RewriteCond %{QUERY_STRING} (?:^|&)tag=([a-z0-9]+)(?:&|$) [NC]
RewriteRule ^ - [CO=tag:%1:example.com:14400:/]
RewriteCond %{QUERY_STRING} (?:^|&)flu=([a-z0-9]+)(?:&|$) [NC]
RewriteRule ^ - [CO=flu:%1:example.com:14400:/]
RewriteCond %{QUERY_STRING} (?:aid|tag|flu)=.+ [NC]
RewriteRule ^(.*)$ $1? [R=301,L]
RewriteRule ^([a-z]+)/(cat1|cat2|cat3|cat4)(|/)$ $1/?$2=show [NC,L]
RewriteRule ^([a-z]+)/([a-z0-9-_]+)(|/)$ / $1/?load=$2[NC,L]
[^&]+ instead of [a-z0-9]+ [NC] This covers absolutely all possible parameter values. But the difference is probably not crucial. /blahblah/?querystring Are you talking about the rules that set cookies ?
RewriteRule ^ - [CO=aid:%1:example.com:14400:/] RewriteRule index\.php - [CO=aid:%1:example.com:14400:/]