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: Need help in ISAPI rule
Author
Message |
virtualtech21
Newbie


Joined: 24 November 2011
Location: United Kingdom
Posts: 3
Posted: 24 November 2011 at 12:25am

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
 
virtualtech21
Newbie


Joined: 24 November 2011
Location: United Kingdom
Posts: 3
Posted: 24 November 2011 at 3:19am

Hello Guys,

Can anyone please look into this for me ?
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 24 November 2011 at 4:24am

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
 
virtualtech21
Newbie


Joined: 24 November 2011
Location: United Kingdom
Posts: 3
Posted: 24 November 2011 at 5:57am

Hay Anton,

you are a STAR :)
It worked.

Thanks very much for your assistance
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