I want to Test my Website Live, but I don't want the public to see it.

A Coming Soon or Under Construction page serves as a placeholder while your website is being built or tested on the hosting server. This type of page prevents public access until your site is ready.

The default pages that servers typically look for when accessing your website are, in order of priority:

  • index.htm
  • index.html
  • index.php
  • default.htm

How to Create an Under Construction Page

1. Create an Under Construction Page

  • Log in to your cPanel.
  • Navigate to File Manager and select the root folder (for the primary domain, use public_html).
  • Click New File and name it appropriately (e.g., underconstruction.html).
  • Click Create New File.

2. Edit the Under Construction Page

  • Select the newly created file and click HTML Editor.
  • Craft the content of your page, including all relevant contact information and a brief paragraph about your company or products.
  • Click Save.

3. Change Your Default Index Page in .htaccess

The .htaccess file is a hidden text file in your hosting account that can modify your website's default behavior.

  • In File Manager, click on Web Root (for addon domains, select the correct domain name from the dropdown).

  • Ensure that Show Hidden Files is checked.

  • Click Go.

  • Right-click the .htaccess file and select Edit. Paste the following code at the beginning of the file, replacing underconstruction.html with your filename:

     
    # Alternate default index page DirectoryIndex underconstruction.html
  • Click Save.

  • Test your site online to ensure the changes are effective.

4. Additional .htaccess Information

For added flexibility, you can include multiple filenames in the .htaccess file. The server will check them in order from left to right. Here’s an example:

# Alternate default index page DirectoryIndex underconstruction.html index.htm index.html index.php default.htm

This setup will allow the server to fallback to other index files if the underconstruction.html page is not found.

  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

How do I know what is the Best Hosting Option for my Website?

Your hosting choice will depend on the required disk space, number of MySQL databases, email...

How to Protect your Images and TMP Directories

Most websites require their images and temporary directories to have full write access to store...

How to Redirect your Website to HTTPS

Before proceeding, ensure you have a valid and active SSL certificate installed on your hosting...

How To Restore or Download Data Using cPanel’s Acronis Backup Module

In this tutorial, we will explore how to restore or download data using cPanel’s Acronis Backup...

If I Register a Domain Name with Bowhosts must I have my Hosting with you as well?

A domain is essentially an address that web browsers use to locate your website and access your...