Apache Server configuration support - .htaccess redirecting one IP

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2004 > .htaccess redirecting one IP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author .htaccess redirecting one IP
Els

2004-07-21, 6:02 pm

Hi, I would like to redirect one specific IP to one specific
page. I tried this by mod_rewrite:

RewriteCond %{REMOTE_ADDR} ^xxx\.xxx\.xxx\.xxx$
RewriteRule .* http://.......html [R,L]

Which obviously doesn't work, because said specific page is also
on the same site, thus obeying the same .htaccess file, thus
being inaccessible for the IP.

I tried putting the page in a directory with an empty .htaccess
file in it, which I thought might overrule the root .htaccess,
but that didn't work.

How can I make it work?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Annie Lennox - Stay By Me
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com