Forum Moderators: phranque
I've been trying to set up a rewrite rule, that I can load in while I upgrade the site behind. I've been trying to get this to work:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^.*(/maintenance_files/¦\.js¦\.css¦\.png¦\.jpg).*$ [NC,OR]
RewriteCond %{REQUEST_URI} !/maintenance\.html$
RewriteRule ^(.*)$ /maintenance.html [L]
Basically I was all requests to show the maintenance.html file, except for any css, images that come fom the /maintenance_file dir (which are used to style the maintenance.html
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/maintenance_files/.+\.(js¦css¦png¦jpg)$
RewriteCond %{REQUEST_URI} !^/maintenance\.html$
RewriteRule ^ /maintenance.html [L]
Jim