Hello,
It seems like your web server is displaying a directory listing instead of serving a default index file. To fix this, you need to create an index file (e.g., index.html) and upload it to your website's root directory. Hope this would be helpful.
Hi pawpawspilotcar,
When someone tries to load your website and does not manually type in a file name (such as index.php or index.html), the server attempts to load the "directory index". The directory index is a listing of files it should load.
For example, if you type in domain.com (IE not domain.com/index.php), the server will attempt to load files in the following order. If a file is not found, then it tries to load the next file in the list:
... and finally, if your server does not find any of these files, it then simply returns a listing of all of the files in the directory.
If you have a homepage called something other than index, such as welcome.html, edit your .htaccess file and add this line to tell the server to load this file first:
To answer your question:
If you do not want the server to return a listing of all the files, you can disable this feature within your cPanel.
1. Log into your cPanel. cPanel is included with all of our accounts, including our dedicated servers.
2. Find and click on the icon that says "Index Manager" (should be at the bottom of cPanel)
2B. If you get a pop up message, choose "web root" and then click "Go"
3. Navigate to the folder that you want to adjust this value for. Click the folder icon to go into the folder, and click the actual folder name to select that folder and make changes for it
4. Select "No Indexing" to hide the file names, or select "Standard" or "Fancy" indexing to list them and then click "Save"
For more details on directory index (referred to above), please see:
What directory should I put my files in?
I hope this helps! If you have any questions, feel free to post a comment on this page and I'll be happy to help further.
Thanks!
- Brad
Hi pawpawspilotcar,
When someone tries to load your website and does not manually type in a file name (such as index.php or index.html), the server attempts to load the "directory index". The directory index is a listing of files it should load.
For example, if you type in domain.com (IE not domain.com/index.php), the server will attempt to load files in the following order. If a file is not found, then it tries to load the next file in the list:
http://domain.com/index.html
http://domain.com/index.htm
http://domain.com/index.php
... and finally, if your server does not find any of these files, it then simply returns a listing of all of the files in the directory.
If you have a homepage called something other than index, such as welcome.html, edit your .htaccess file and add this line to tell the server to load this file first:
To answer your question:
If you do not want the server to return a listing of all the files, you can disable this feature within your cPanel.
1. Log into your cPanel. cPanel is included with all of our accounts, including our dedicated servers.
2. Find and click on the icon that says "Index Manager" (should be at the bottom of cPanel)
2B. If you get a pop up message, choose "web root" and then click "Go"
3. Navigate to the folder that you want to adjust this value for. Click the folder icon to go into the folder, and click the actual folder name to select that folder and make changes for it
4. Select "No Indexing" to hide the file names, or select "Standard" or "Fancy" indexing to list them and then click "Save"
For more details on directory index (referred to above), please see:
What directory should I put my files in?
I hope this helps! If you have any questions, feel free to post a comment on this page and I'll be happy to help further.
Thanks!
- Brad