Jump to content

Archived

This topic is now archived and is closed to further replies.

michaellunsford

can htaccess see a query string?

Recommended Posts

I've been banging my head agains this for months -- I think I even posted it here before.

How do I get htaccess to pass the entire query string along with whatever else it passes?

so, if someone requests this.html?id=1&more=2 it will redirect them to index.php?page=this&id=1&more=2

is it possible?

Share this post


Link to post
Share on other sites
ahhh... here we go:

[code]RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA,L][/code]
The magic is the [QSA] part.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.