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? 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. 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
Archived
This topic is now archived and is closed to further replies.