Welcome to WebmasterWorld Guest from 126.96.36.199
It fails to redirect www requests with appended port numbers
Are you trying to get rid of the queries entirely, or just change to different ones?
I want to get rid of everything after the / that is dynamically created.
For non-www/www redirect use this pattern: !^(www\.example\.com)?$ instead.
After the slash or after the question mark? Slash would be removing "path" elements. Question mark would be "query string".
will this do both the non-www/www redirect, remove any and all parameters, and not create an infinite redirect loop? (the +++ are mine - do not want to create a false link)
You'll need a RewriteCond testing QUERY_STRING or THE_REQUEST to make sure the original request did have an appended query string. To be clear, if you accidentally redirect "without query string" to "without query string", you will end up with an infinite redirect loop.
Wasn't that fun?