Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: HTTP and HTTPS to HTTPS Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Bigor
Newbie
Newbie


Joined: 06 March 2008
Location: Canada
Online Status: Offline
Posts: 6
Posted: 08 July 2008 at 2:16pm | IP Logged Quote Bigor

Hi guys!

I need to do redirect

from http://tms.company.com to https://tms.company.com/abc/d.pyc

AND

from https://tms.company.com to https://tms.company.com/abc/d.pyc

In other words, user can type "http://" or "https://" but must be redirected to the same location in both cases.

Could you please help me with these rules?

Thanks

 

 

Back to Top View Bigor's Profile Search for other posts by Bigor
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7373
Posted: 08 July 2008 at 3:28pm | IP Logged Quote Lexey

RewriteCond Host: tms\.company\.com
RewriteCond %HTTPS (on)|.*
RewriteRule / http(?1s:)\://tms.company.com/abc/d.pyc [I,R]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
Bigor
Newbie
Newbie


Joined: 06 March 2008
Location: Canada
Online Status: Offline
Posts: 6
Posted: 08 July 2008 at 3:39pm | IP Logged Quote Bigor

Spasibo, (A)?Leksey!
Back to Top View Bigor's Profile Search for other posts by Bigor
 

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