Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: conditional redirect? |
|
Author |
|
Danll
Joined: 02 Aug 2013 Posts: 49 Location: USA, Houston
|
Posted: Tue 25 Oct '16 23:41 Post subject: conditional redirect? |
|
|
I have a redirect set up, based on {HTTP_REFERRER}, but I want to allow one particular IP, coming from that REFERRER to NOT be redirected. How do I do this?
I assume I need an [AND] and some kind of negation, but I don't know how to do that. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sat 12 Nov '16 22:29 Post subject: |
|
|
I think this might work
<LocationMatch ^/test.php>
<If "%{HTTP_REFERRER} =~ /somewhat/">
Require ip 192.168.178.100
</If>
</LocationMatch> |
|
Back to top |
|
|
|
|
|
|