My index page does not load - Why not?

General | Updated 2026

If your domain loads a directory listing, a default server page, or a blank screen instead of your homepage, the issue is usually that your index file is named incorrectly, is in the wrong directory, or has an error preventing it from rendering.

01. Check Your Index File

  1. Log into cPanel and open File Manager
  2. Navigate to public_html
  3. Look for a file named index.html or index.php

If the file does not exist, you need to upload your website files. See Uploaded My Site But Cannot See It for guidance on where to upload files.

If the file exists but has a different name (like home.html or main.php), either rename it to index.html/index.php, or set a custom DirectoryIndex in .htaccess (see section 05).

02. Index File Naming and Priority

Apache checks for index files in this order:

  1. index.html
  2. index.htm
  3. index.php
  4. index.shtml

The first one found is served. If you have both index.html and index.php, the .html file takes priority. If your site runs on PHP (like WordPress), make sure there is no leftover index.html file that is overriding your index.php.

Tip

A common issue: cPanel creates a default index.html "Under Construction" page on new accounts. If you installed WordPress but still see the default page, delete or rename public_html/index.html. WordPress uses index.php which has lower priority. See Removing the Default Page.

03. Files Must Be in public_html

Your website's document root is public_html. Files uploaded to your home directory (one level above public_html) or to a subdirectory inside public_html will not serve as your homepage.

Common mistake: uploading files inside a subfolder like public_html/mysite/index.html. The homepage should be at public_html/index.html. For addon domains, the document root is the directory you specified when creating the addon domain. See FTP Root Directory.

04. PHP Errors Causing Blank Pages

If your index.php exists but the page is blank (white screen), there is likely a PHP error. Check your error log: cPanel > Metrics > Errors, or look at public_html/error_log.

Common causes:

  • Syntax error in PHP code
  • Database connection failure - Check wp-config.php credentials for WordPress. See Cannot Connect to MySQL.
  • PHP version incompatibility - Your code may require a different PHP version. See Changing PHP Version.
  • Memory limit exceeded - Check for "Allowed memory size exhausted" in the error log

05. DirectoryIndex in .htaccess

If your homepage file has a non-standard name, you can tell Apache to use it by adding this to your .htaccess file:

DirectoryIndex home.php index.php index.html

This tells Apache to look for home.php first, then fall back to index.php, then index.html.

Still Seeing the Wrong Page?

If your index file exists with the right name in the right directory and your site still is not loading, open a ticket and we will check the server configuration.

Open a Support Ticket

Quick Recap

  1. Check that index.html or index.php exists in public_html
  2. index.html takes priority over index.php - Delete leftover default pages
  3. Files must be directly in public_html - Not in a subfolder
  4. Blank page = PHP error - Check cPanel > Metrics > Errors
  5. Custom filename? - Set DirectoryIndex in .htaccess

Getting your homepage to load correctly · Last updated March 2026 · Browse all General articles

  • 451 Users Found This Useful

Was this answer helpful?

Related Articles

My pages are updating/refreshing slowly

General | Updated 2026 If your website loads slowly or takes a long time to update after you...

Inode issues

There are many issues that can arise from reaching your inode limit. The inode limit is the total...

Adding a Facebook Button

Adding a Facebook Button to Your Website   You can add Facebook Like, Share, or Follow...

Can you write a script for me?

Article Updated This article has been consolidated Custom script requests are addressed...

What is a domain?

A domain is a human-readable name assigned to an IP address to make accessing websites much...



Save 30% on web hosting - Use coupon code Hosting30