So during a maintenance, here's what I would have in my .htaccess file:
RewriteEngine On
RewriteBase /
Don't mind the 8's, that's where my IP would go.Code:RewriteCond %{REQUEST_URI} !^/maintenance\.php$ RewriteCond %{REMOTE_HOST} !^888\.888\.888\.888 RewriteRule ^(.*)$ maintenance.php [L]
So the site goes into maintenance perfectly, but I can't access it either.
I've searched around Google for answers, but it seems to work fine for everyone else.
For the RewriteCond, I don't know whether I should be using REMOTE_HOST or REMOTE_ADDR, but I've tried them both and they both don't work.
Can anyone help me to allow my IP to access my site during a maintenance?


Reply With Quote
Bookmarks