.htaccess redirecting one IP
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > .htaccess redirecting one IP




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    .htaccess redirecting one IP  
Els


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-21-04 11: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:50 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register