I am using this, at present, to rewrite URLS:
RewriteEngine on
RewriteRule ^([^/?\.]+)$ /page.php?name=$1 [NC]
So mysite.com/home
gets rewritten to mysite.com/page.php?name=home
How can I make it also rewrite mysite.com/home?param=value
to mysite.com/page.php?name=home¶m=value
? Ideally, I'd like this to work for any name/value querystring pairs.
Am I missing something obvious?