Return to Snippet

Revision: 31868
at September 15, 2010 00:15 by BFTrick

Initial Code
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} !^123\.45\.67\.89
RewriteCond %{REQUEST_URI} !/alternate_page\.html$
RewriteRule \.html$ /alternate_page.html [R=302,L]

Initial URL

Initial Description
This code redirects all external traffic (all traffic not belonging to a particular ip) to a temp page. This is useful for performing site maintenance.

Initial Title
Redirect all external traffic to a temp page

Initial Tags
redirect, htaccess, ip

Initial Language