This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Add a querystring to URL
Message |

Joined: 07 November 2011
Location: United Kingdom
Posts: 1
Posted: 07 November 2011 at 5:01am


This is my first post and I'm new to URL Rewriting so
this is probably very easy but I can't see the answer
after searching this forum.

I'm trying to add a querystring to the following URL: -

so it becomes.

I've tried: -

# Helicon ISAPI_Rewrite configuration file
# Version

RewriteEngine on
RewriteCond %{HTTP_HOST} ^myplymouthhome\.co\.uk$ [NC]
RewriteRule ^(.*)$
branchname=colchester&branchid=0308 [R=301, NC, L]

...but this doesn't work...please help.

Back to Top
Admin Group

Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 07 November 2011 at 8:11am

Please try the following changes:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^myplymouthhome\.co\.uk$ [NC]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^/?$\?branchname=colchester&branchid=0308 [R=301,NC,L]

And please update to the latest build of ISAPI_Rewrite as the one you are using is so obsolete!

Back to Top

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum