Forum Moderators: phranque

Message Too Old, No Replies

.htaccess redirect but backwords

         

spalx

8:17 am on Aug 6, 2005 (gmt 0)

10+ Year Member



Hello all, here is the code i have ...
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^217\.113\.22[4-8]\
RewriteCond %{REDIR} redir
RewriteRule .* /page.html

as you will understand from the code i want to redirect some ip`s accessing my website ... the code is perfect for me exept one thing ... i dont want to redirect certain ip`s ... i want to leave these ip`s to gain access and redirect everybody else .... someone have any ideas? and i have another question ... is there a way i can make a logging system with .htaccess (i am using the apache file listing and i need to keep it this way but i want track the ip`s that gain access) Thank you all for the help.