I need to add style=2 to all urls within a directory ONLY if the url does NOT already contain style=2.
Within the directory root, I have an .htaccess with the following:
RewriteCond %{QUERY_STRING} !(?style=|&style=)
RewriteRule ^(.*)$ %1&style=2? [R=301,QSA]
I know it's wrong. Can anyone help?