conker87 Posted July 16, 2011 Share Posted July 16, 2011 Hiya all, I'm use good ol' mod_rewrite to pretty up my urls, but now I'd like to use GET to sort queries. However, if I do this: domain.com/articles/?title=blah&orderby=id It just ignores the variables at the end. Is there anything I need to add to my code for it to pick up these? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/242117-get-after-mod_rewrite/ Share on other sites More sharing options...
djlee Posted July 16, 2011 Share Posted July 16, 2011 you would have to post up the mod_rewrite code and an example that doesnt work. I believe if you are setting variables in your mod_rewrite code as GET vars, it will ignore the GET vars in the url. This is why a lot of CMS type systems mod_rewrite everything to a single index page then handle the load from there. So just patse up that code and someone will help Quote Link to comment https://forums.phpfreaks.com/topic/242117-get-after-mod_rewrite/#findComment-1243420 Share on other sites More sharing options...
wildteen88 Posted July 16, 2011 Share Posted July 16, 2011 You'll need to use the QSA flag (query string append) on your rewrite rules Quote Link to comment https://forums.phpfreaks.com/topic/242117-get-after-mod_rewrite/#findComment-1243423 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.