SetEnvIf Request_URI ^/allowed_url noauth=1 AuthUserFile /.../example.com/.htpasswd AuthName "Please authorize yourself" AuthType Basic Order Deny,Allow Satisfy any Deny from all Require valid-user Allow from env=noauth
RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} !^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_URI} !/maintenance.html$ RewriteCond %{REMOTE_HOST} !^888\.888\.888\.888 RewriteRule $ /maintenance.html [R=302,L]
header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Retry-After: Sat, 8 Oct 2011 18:27:00 GMT');