Overview
An index file is the default page that a web server displays when someone visits your domain, such as https://example.com, without specifying a particular file path.
Common index filenames include index.html and index.php.
When both files are present in the same document root, index.html takes precedence over index.php on our
hosting configuration.
If your index page is not loading or the wrong page is being displayed, follow the troubleshooting steps below.
Please note that some of these steps involve advanced troubleshooting. If you are unfamiliar with any of the steps or unsure about making changes to your website files or settings, please contact our Customer Support team for assistance before proceeding.
Step 1: Check Your Website's Document Root
- Log in to your account.
- Select Products from the left-hand navigation menu.
- Select Hosting from the top toolbar.
- Locate your hosting package and click Control Panel.
- Select Files from the left-hand navigation menu.
- Locate your website's document root. This is typically named
httpdocsor may be named after your domain, such asexample.com.
Ensure that your index file is located within the correct document root and not inside an additional folder.
Step 2: Check the Index Filename
Ensure that your index file is named correctly, including its file extension and capitalization.
Common filenames include:
index.htmlindex.php
For example, Index.html and index.html may be treated as different filenames.
Step 3: Test the Index File
Try accessing your index file by including its filename in the URL:
Replace example.com with your domain name and test the applicable file.
If the index file loads using this URL but does not load when visiting your domain, the issue may be related to the default index configuration or rewrite rules.
Step 4: Check for Multiple Index Files
If both index.html and index.php exist within the same document root, the HTML file may take precedence.
Before renaming or modifying any files, create a full backup of your website files and database, if applicable.
- If you intend to use
index.phpas your homepage, temporarily renameindex.htmltoindex.html.bakand test your website again. - If your standalone
index.htmlpage is not loading, you can temporarily rename it toindex.phpand test your website,
Ensure that you do not overwrite any existing files when renaming them by creating backup of the file first.
Restore the original filenames after testing unless you have confirmed that the change is appropriate for your website.
Step 5: Check File and Folder Permissions
Ensure that your index file and website folders have the appropriate permissions.
Typical website permissions are:
- Files:
644(rw-r--r--) - Folders:
755(rwxr-xr-x)
Permission letters represent the following:
r— Readw— Writex— Execute (allows directory traversal for folders)-— Permission not granted
Incorrect permissions may prevent the web server from accessing your website files.
These are typical permissions and may vary depending on your hosting and website configuration.
If you are unsure, please contact our Customer Support team before modifying permissions, as incorrect changes may affect your website's accessibility or security.
Step 6: Review Your .htaccess File
If the issue persists, check whether your website has an .htaccess file containing custom directory index settings, rewrite rules, or redirects that may affect how your index page loads.
Do not modify or remove existing rules without creating a backup and understanding their purpose.
Still Need Help?
If your index page is still not loading after completing these checks, please contact our Customer Support team for further assistance.
Comments
0 comments
Article is closed for comments.