I actually did search a solution for this but I guess it's to specific because I couldn't find a solution to fit my needs.
Anyway on to my "problem".
I'm looking for a way to rewrite all query strings.
Why? Well I don't want http://www.example.com/ to display the same as http://www.example.com/? or http://www.example.com/?test or http://www.example.com/?=test or http://www.example.com/test? etc...
Here come's the tricky bit.
I'm using Joomla! 1.5.x with SEO/SEF url's turned on, so I don't have any query strings in the "front-end". There are query strings in the back-end however.
http://www.example.com/administrator/ and everything within this folder is not supposed to be effected.
I did find the following:
[
webmasterworld.com...]
# Create 404 on all root folder requests with query strings
# appended by rewriting to a file that does not exist
RewriteCond %{QUERY_STRING} &?ID=
RewriteRule ^[^/]*$ /non-existent-file.hmtl? [L]
and
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /[^?\ ]*\?[^\ ]*\ HTTP/
RewriteRule ^ /non-existent-file.hmtl? [L]
Obviously the above examples don't take the /administrator/ folder into account. Nor am I a 100% the above code does what I need.
If I need to provide more info give me a shout.
Thanks in advance for any help/tips provided.