This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Cannot get RewriteCond to work properly
Author
Message |
ShytKicker
Newbie


Joined: 13 December 2007
Location: United States
Posts: 36
Posted: 19 January 2012 at 12:58am

I am trying the following, but it is not working:

RewriteCond %{HTTP_HOST} (.+) [NC]
RewriteCond %{HTTP_REFERER} !^.*%1.* [NC]


Basically, I am checking if the host name is missing in the referer, but this does not work.

How can I get this to work?
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 19 January 2012 at 3:54am

Hello,

Try the following instead:

Code:
RewriteCond %{HTTP_HOST} (.+) [NC]
RewriteCond %{HTTP_REFERER} !^.*%{HTTP_HOST}.* [NC]


In case this won't work and provide the rewrite.log for the testing request.
Logging issues described in FAQ

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version