PDA

View Full Version : mod_rewrite help


mtrac
09-16-2005, 05:40 PM
I would like to redirect a specific IP address to a specific domain and need some syntax help. The following redirected everything. Note that there are already some conditions in .htaccess to prevent hotlinking and deny certain IPs and I appended this.

Thanks.

RewriteCond %{REMOTE_ADDR} !^192\.168\.0\.1$
RewriteRule ^.*$ http://www.somedomain.org/ [R,L]