- Code: Select all
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /maintenance.html [L]
The problem I'm having is that it doesn't seem as though mod_rewrite can see that the maintenance file exists. Here is a line from the rewrite logs:
- Code: Select all
RewriteCond: input='/home/laserlemon/maintenance.html' pattern='-f' => not-matched
That file certainly does exist and has 775 permissions. Does anybody have any insight into why mod_rewrite might have trouble seeing that this file exists?