I am attempting to redirect all users to a maintenance page, while only allowing myself to use the website. I currently have the redirect working, but cannot seem to allow myself to access the site. Here is the code I added to my .htaccess file:
# Maintenance Redirection
# Replace 555\.555\.555\.555 with your own IP address
# Uncomment first conditional to turn off the redirection
# RewriteCond %{REQUEST_URI} ^$a
RewriteCond %{REQUEST_URI} !maintenance.php
RewriteCond %{REQUEST_FILENAME} !(css|font).+$
RewriteCond %{REMOTE_ADDR} !^555\.555\.555\.555$
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
RewriteRule (.*) /maintenance.php [R,L]
I replaced the area with 555\.555\.555\.555 with my own IP address. I should note that I retained the backslash, but I am assuming that is an escape sequence?
Thank you for the help in advance.