mod_rewrite with question marks and ampersands (with PHP)
- by Chris
I have a PHP-based web app that I'm trying to apply Apache's mod_rewrite to.
Original URLs are of the form:
http://example.com/index.php?page=home&x=5
And I'd like to transform these into:
http://example.com/home?x=5
Note that while rewriting the page name, I'm also effectively "moving" the question mark. When I try to do this, Apache…