Jump to content

Redirect with optional query string param


trq

Recommended Posts

I have what I would consider a pretty simple redirect. We have a series of promotion codes which all need to be redirected to our store. These work however we also have some affiliates who link banners to these urls along with a querystring parameter so we can (within the store) recognise where the link came from.

 

The rule I have:

 

RewriteRule ^(?:abc|brt|dbcc|ppc|dqu|arl)\??(.*)$          https://www.ourstore.com/Store/Jadehttp.dll?Store&$1 [R]

 

/abc etc etc all work fine and redirect as expected. However, appending a querystring such as /abc?foo=bar does not get passed along. Remember these are optional and may not always be present.

 

Any help would be greatly appreciated.

 

ps: This is actually being performed using isapi rewrite on IIS but it should be compatible with mod_rewrite.

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.