michaellunsford Posted July 1, 2006 Share Posted July 1, 2006 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=2is it possible? Quote Link to comment https://forums.phpfreaks.com/topic/13396-can-htaccess-see-a-query-string/ Share on other sites More sharing options...
michaellunsford Posted July 1, 2006 Author Share Posted July 1, 2006 ahhh... here we go:[code]RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA,L][/code]The magic is the [QSA] part. Quote Link to comment https://forums.phpfreaks.com/topic/13396-can-htaccess-see-a-query-string/#findComment-51733 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.