mod_rewrite by ISP name string?

147 Views Asked by At

I have two servers - this one does not require ^ and backslash in order to work. I want to redirect based on IP NAME not the IP number. The (fictitious) IP Name is 74.125.227.104.cust.wildblue.net

This works perfectly:

RewriteCond %{REMOTE_HOST} 74.125.227.104

RewriteRule .* http://www.newsite.com/ [R=301,L]

This is wrong - the name is what I wish to catch and redirect:

RewriteCond %{REMOTE_HOST} cust.wildblue.net

RewriteRule .* http://www.newsite.com/ [R=301,L]

Any help is VERY much appreciated! Thank you

-David Dolores

0

There are 0 best solutions below