Is it possible to rewrite a url, and still be able to use query?
I mean something like this: http://domain.com/?page=Home&derp=true
and rewrite it to this: http://domain.com/home.htm?derp=true
So actually just rewrite the first query…
I’ve tried to do this:
RewriteRule ^([a-z]+).htm$ index.php?page=$1
But Wasn’t able to pass a parameter with D:
Oh dude, you should better write your question. Just add
[QSA]Docs at the end and it should work:It’s no problem at all, that are just some simple string operations in PHP, you don’t even need a regular expression for it:
If you want to, you can do this with regex, too: