inactive Posted September 11, 2008 Share Posted September 11, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/123714-solved-rewrite-issues/ Share on other sites More sharing options...
inactive Posted September 11, 2008 Author Share Posted September 11, 2008 Ah Ha! RewriteRule ^(001¦002¦003)/foobar/$ foobar/index.php?code=$1&%{QUERY_STRING} [L] Quote Link to comment https://forums.phpfreaks.com/topic/123714-solved-rewrite-issues/#findComment-638809 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.