/ Published in: Apache
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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]