Need help trying to rewrite url based upon remote_addr

New to mod_rewrite? This is a good place to start.

Postby ashirley » Wed Jul 24, 2002 9:25 am

I need some help getting a url rewritten

Here's what I have so far in the Virtual Host part of my primary web site
RewriteCond %{REMOTE_ADDR} ^167.142.33.01
RewriteRule ([a-z]+).([a-z]+).([a-z]+) http://www.abcnews.com

I'm trying to redirect the URL based upon the IP address, but it doesn't seem to be working. I'm trying to forward to abcnews.com just for testing purposes. Once I'm sure the url rewrite is working, I'm pointing it to a different web site.

Any help would be appreciated.

Thanks!
ashirley
 
Posts: 1
Joined: Tue Jul 23, 2002 4:00 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 18 guests

cron