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: Need help in ISAPI rule Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
virtualtech21
Newbie
Newbie


Joined: 24 November 2011
Location: United Kingdom
Online Status: Offline
Posts: 3
Posted: 24 November 2011 at 12:25am | IP Logged Quote virtualtech21

Hello Friends,

I need your help in designing a rule.

I got success to redirect a specific Non SSL URL to SSL URL which is :

from http://www.mydomain.co.uk/account.asp
to https://www.mydomain.co.uk/account.asp
I wanted to redirect only above specific non ssl url to ssl url but www.mydomain.co.uk should not be redirected to https://www.mydomain.co.uk

I got success using following rule :

RewriteCond %HTTPS (?!on).*
RewriteRule /account.asp(/.*)? https\://www.mydomain.co.uk/account.asp$1 [I,RP]

but now I want to redirect :
FROM

http://www.mydomain.co.uk/account.asp?sReferrer=plan

TO

https://www.mydomain.co.uk/account.asp?sReferrer=plan

and it should be applicable when we change last part of above URL  "?sReferrer=plan" to anything.

Can you please help me to design this rule ?

Thanks in advance
Back to Top View virtualtech21's Profile Search for other posts by virtualtech21
 
virtualtech21
Newbie
Newbie


Joined: 24 November 2011
Location: United Kingdom
Online Status: Offline
Posts: 3
Posted: 24 November 2011 at 3:19am | IP Logged Quote virtualtech21

Hello Guys,

Can anyone please look into this for me ?
Back to Top View virtualtech21's Profile Search for other posts by virtualtech21
 
Anton
Admin Group
Admin Group


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

Please try fixing the rule like this:

RewriteCond %HTTPS (?!on).*
RewriteRule /account.asp(.*) https\://www.mydomain.co.uk/account.asp$1 [I,RP]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
virtualtech21
Newbie
Newbie


Joined: 24 November 2011
Location: United Kingdom
Online Status: Offline
Posts: 3
Posted: 24 November 2011 at 5:57am | IP Logged Quote virtualtech21

Hay Anton,

you are a STAR :)
It worked.

Thanks very much for your assistance
Back to Top View virtualtech21's Profile Search for other posts by virtualtech21
 

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