Return to Snippet

Revision: 42898
at March 12, 2011 10:19 by zac


Initial Code
Options +FollowSymlinks
RewriteEngine on
# exclude maintenance page
RewriteCond %{REQUEST_URI} !/maintenance.php$
# enter ip to allow access
RewriteCond %{REMOTE_HOST} !^11\.11\.11\.11
# exclude files from rewrite
RewriteCond %{REQUEST_URI} !/css/(.*)$
RewriteCond %{REQUEST_URI} !/images/(.*)$
#maintenance page
RewriteRule $ /maintenance.php [R=302,L]

Initial URL

                                

Initial Description

                                

Initial Title
Maintenance mode with .htaccess

Initial Tags
redirect

Initial Language
Apache