I'm having a devil of a time getting Apache's Rewrite* stuff to do what I need.
Basically, I have a range of IP space that I need to redirect to a specific URL /except/ one IP within that range. Everyone else in the world also gets the normal/default URL.
So, in pseudocode:
If matches all of 1.2.0.0 BUT NOT 1.2.3.4
Redirect to
http://this.site
else
continue
Fi
Specifically I am also redirecting any queries to ^/ to a specific page (ie: index.php) but I need the above conditional to apply.
I've tried many examples from out there and it's understandably confusing. It appears you can't really negate this in a RewriteCond loop, either -- I tried it.
Anyone know how to accomplish this correctly in apache 2.2?
Thanks.
Recent comments
1 day 1 hour ago
1 day 6 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 18 hours ago
2 days 7 hours ago
2 days 9 hours ago