Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Rewrite Rule Link Issue Reply To: Rewrite Rule Link Issue

#151494
__
Participant

If

RewriteCond %{REMOTE_HOST} !^***\.***\.**\.***

then why does it matter which page you’re requesting? Wouldn’t you like to be able to see the entire site while you’re in testing mode?

, – – – – – – – – – – – – – – – – – – – – – – – – –

BTW your “solution”

RewriteCond %{REQUEST_URI} ^/test3
RewriteRule .+ - [L]

will allow anyone to view the /test3 folder while your site is in “maintenance mode,” not just you.

, – – – – – – – – – – – – – – – – – – – – – – – – –

Also, this

RewriteCond %{REQUEST_FILENAME} !-f

makes this

RewriteCond %{REQUEST_URI} !/maintenance/index.html$ 

redundant (since index.html is, presumably, a file).