On 02/14/2010 08:53 PM, Jos Chrispijn wrote:
Can someone tell me how I can redirect visitors to either index.php or
index.html on basis of their ip address?
I am in the process of building a new website and only for my own ip
address I want to get access to the new site (index.php) and have all
other visitors been redirected to the old website (index.html +
redirection).

thanks in advance
Jos Chrispijn



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
" from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


RewriteEngine On
RewriteCond %{REMOTE_ADDR} abc\.def\.ghi\.jkl
RewriteRule ^(.*)$ /index.html [L,R=302]

--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to