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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Add a querystring to URL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mrnickm
Newbie
Newbie


Joined: 07 November 2011
Location: United Kingdom
Online Status: Offline
Posts: 1
Posted: 07 November 2011 at 5:01am | IP Logged Quote mrnickm

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 View mrnickm's Profile Search for other posts by mrnickm
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 07 November 2011 at 8:11am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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