Clive Portman: code

Redirect by IP address using .htaccess

Useful for taking an ExpressionEngine or other CMS-powered site offline while still allowing developer access:

RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$
RewriteRule (.*)$ http://cliveportman.co.uk/update-in-progress.html [L,R=301]