Hey ALUG,
I've been fiddling with this RewriteRule in Apache for ages (I did ask an Apache forum but no one answered). I wonder if anyone knows anything about these things?
I want to make old fashioned URLs like: http://www.sara.uea.ac.uk/search_from_listings.php?artist_id=13 redirect to the new ones: http://www.sara.uea.ac.uk/?artist&id=13
I've tried this rewrite rule (and about a million permutations of it):
RewriteRule ^/search_from_listings.php?artist_id=([0-9]+)$ http://www.sara.uea.ac.uk/?artist&id=$1
I've tried escaping all the characters and I've tried all sorts of combinations of flags but it never works.
For some reason this: RewriteRule ^/search_from_listings.php?(.*)$ http://www.sara.uea.ac.uk/$1
matches (though it doesn't do anything useful).
Any ideas?
Cheers, Richard