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: Ignoring localhost rewrite condition? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tximagineer
Newbie
Newbie


Joined: 26 April 2011
Location: United States
Online Status: Offline
Posts: 1
Posted: 26 April 2011 at 12:16pm | IP Logged Quote tximagineer

Please excuse my ignorance =)

Rewrite conditions are additive right?

Ala

RewriteCond %HTTPS (?!on).*
RewriteCond Host: (.*)
RewriteRule (.*) https\://$1$2 [I,RP]

...

If it passes condition 1+2, enable rule 3.

I'm trying to rewrite everything EXCEPT queries coming
from localhost to https. Can anyone help me out here? I
tried adding

RewriteCond From: (?!127.0.0.1)

Similarly I said "okay.. well how about if I just ignore
writes TO localhost?

RewriteCond Host: (?!localhost)

Didn't work either. :|

Any help would be appreciated.

Back to Top View tximagineer's Profile Search for other posts by tximagineer Visit tximagineer's Homepage
 
Anton
Admin Group
Admin Group


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

The rules should be:

RewriteCond %HTTPS (?!on).*
RewriteCond Host: (?!localhost)(.*)
RewriteRule (.*) https\://$1$2 [I,RP]

__________________
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