Jump to content

[SOLVED] mod_rewrite and standard $_GET variables?


Buddyb3ar

Recommended Posts

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?

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

 

Archived

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

×
×
  • Create New...

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.