Forum Moderators: phranque

Message Too Old, No Replies

htaccess question

deny and then redirect

         

graywolf

5:05 pm on May 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I know how to use a redirect and a deny command but is it possible to deny based on IP and then redirect to another URL?

volatilegx

6:04 pm on May 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member


Best way to do this is Mod_Rewrite...

RewriteEngine On
RewriteCond %{REMOTE_HOST} ^123\.45\.67\.89
RewriteRule \.html$ /alternate_page.html [L]