Select a topic:

Choose from one of the topics below to browse other articles

Articles & Information.

Setting a maintenance page with a .htaccess file

Last updated by Steven Nicholas on December 01, 2016 15:13

This guide will show you how to set a maintenance page within your hosting account.

  1. Login to your cPanel account. When you first set up an account with us, you would have received an email with the details on how you can gain access to your control panel. If you have lost those details, feel free to raise a support ticket or call in.


2. Please navigate to “File Manager”


3. Navigate to “public_html”


4. You can now either upload your existing maintenance.html page or create one. For the purpose of this guide, I will create a maintenance.html page.

Within the file manager, click “+File” and call the file “maintenance.html” like so:


5. After clicking “Create New File”, you can now edit the maintenance.html file and add in your message. Right click on the file and click “Edit”.

Click “Save Changes” at the top right to continue.

You have now created your maintenance page, we now need to tell the server to present this page to the general public when they access your domain name.


6. We now need to find the .htaccess file, you may already have one. If not, you will need to create a .htaccess file using the same process as above. Please call the file “.htaccess”.

This file is hidden by default, to view hidden files please select “Settings” at the top right and choose the option to show hidden files:


7. Right click .htaccess and click “Edit”, we are about to enter this code:

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_URI} !^/maintenance\.html$

RewriteRule ^(.*)$ http://YOURDOMAIN.com/maintenance.html [R=307,L]

Please replace “YOURDOMAIN” with your domain name.

The code needs to be at the very top like so:

Click “Save Changes” at the top right.

Your website will now be displaying your maintenance page.

If you are experiencing any issues, please feel free to call in or raise a support ticket.