Buddyb3ar Posted July 10, 2007 Share Posted July 10, 2007 I'm not very experienced with mod_rewrite or the rewrite engine, but I know enough to get me by. Recently though, I've ran into a problem. I need to use standard $_GET variables, but still be able to use mod_rewrite to rewrite the URL. So, I basically want a URL that looks like this: www.mysite.net/register/?error=1 I'm not really sure how to do this, but I know there is a way (I've seen other sites do this correctly). Does anyone have any idea how to solve my problem? Quote Link to comment Share on other sites More sharing options...
per1os Posted July 10, 2007 Share Posted July 10, 2007 if it were me I would format it like so: www.mysite.net/register/get/error/1 Than use regex in either php or the htaccess file, if it contains get don't redirect to that but the item before it. Than you can use the page to parse the URI and anything after get should be formed of varname/value Quote Link to comment Share on other sites More sharing options...
Buddyb3ar Posted July 10, 2007 Author Share Posted July 10, 2007 You do have a point. I guess I'll do that. Thanks for the help (: Quote Link to comment 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.