Jump to content

[SOLVED] Rewrite issues


inactive

Recommended Posts

Hi guys,

 

Hope I have the right forum here...

 

I'm using the following rule in my .htacces (among others):

 

RewriteRule ^(001¦002¦003)/foobar/$ foobar/index.php?code=$1 [L]

 

This works great, enabling any requests to www.mysite.com/002/foobar/ to go through to www.mysite.com/foobar/index.php?code=002, which is what I want.

 

However, if a user goes to www.mysite.com/002/foobar/?user=booyah, then I would like that parameter passed too (so www.mysite.com/foobar/index.php?code=002&user=booyah), but it doesn't.

 

The paramters that may appear in the url may be there, or may not, and also will vary greatly.

 

Can anyone help with how I change my rewrite rule?

 

Cheers,

Mitch.

Link to comment
https://forums.phpfreaks.com/topic/123714-solved-rewrite-issues/
Share on other sites

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.