Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect Out of SSL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
karlosg
Newbie
Newbie


Joined: 03 June 2010
Online Status: Offline
Posts: 1
Posted: 03 June 2010 at 6:56am | IP Logged Quote karlosg

Hi,

We have two SSL pages:
https://secure.example.com/one.html
https://secure.example.com/two.html

We have out site setup so that the user is sent to SSL
when they request these pages. However, all the links on
this page are also to SSL. Is it possible to redirect the
user from HTTPS to HTTP for any page *except* the two
urls above?

e.g. if a user accessed
https://secure.example.com/public.html they would be
redirected to http://www.example.com/public.html
Back to Top View karlosg's Profile Search for other posts by karlosg
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 03 June 2010 at 7:23am | IP Logged Quote Anton

Sure, it's possible. Here's the config for ISAPI_Rewrite 2:

#Redirect HTTPS to non-HTTPS
RewriteCond Host: (.*)
RewriteCond %{HTTPS} on
RewriteRule /(?!(?:one|two)\.html)(.*) http\://$1$2 [R,L]

__________________
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