Revision history [back]

click to hide/show revision 1
initial version

Redirect users to maintenance page

Hi Guys

ubuntu server. I am trying to implement a feature, whereby we can redirect the user to a static html page if we are performing any maintenance on Openstack.

I have mod-rewrite working in the .htaccess file in /var/www

.htacess file looks like the following:

RewriteEngine on RewriteRule ^/?index.html$ maintenance.html [L]

So now if I go to :

http:<ipaddress> instead of getting the index.html I get the maintenance html.

This tells me that the rewrite option is working correctly.

Ok Now where I am struggling is the actual address I need for the dashboard so that when somebody tries to access it, it points to my maintenance.html file rather than the dashboard. eg if my dashboard address is http: what do i need to put instead of index.html ?

RewriteRule ^/?index.html$ maintenance.html [L]