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
Author
Message |
mrnickm
Newbie


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

Hi,

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: -

http://myplymouth.co.uk

so it becomes.
http://myplymouth.co.uk?
branchname=colchester&branchid=0308

I've tried: -

# Helicon ISAPI_Rewrite configuration file
# Version 3.0.0.28

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

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

Back to Top
 
Anton
Admin Group


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

Please try the following changes:

RewriteEngine on
RewriteBase
RewriteCond %{HTTP_HOST} ^myplymouthhome\.co\.uk$ [NC]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^/?$ http://myplymouthhome.co.uk\?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!

__________________
Regards,
Anton
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