Files and Folders only show on site

From Lunarpages Web Hosting Wiki
Jump to: navigation, search

Q: All I see is the file and folders when I go to my URL. How do I get my site to automatically go to my first page?

A: All files and folders should go under the public_html directory.

Please be sure to create an index file for your first page. This can be index.htm, index.html, index.php, etc. Our system looks for those exact names by default. It must be placed directly under public_html and not a subfolder. When you go to http://yourdomain.com, this file will then automatically open. Without it, your file structure may show instead.

For subdomains and other folders, when going to the folders at http://sub.yourdomain.com or http://yourdomain.com/folder/ an index file in them will behave the same way and automatically open.

Please note: our Linux servers are case sensitive so index.htm and Index.htm are two different files. Index.htm will not be recognized as the default first page.

LPCP index page or using an alternate page

For LPCP, it will look for index.html, so if you upload a index.htm file it may show the directory listing. To force the server to see the index.htm page without having to rename it edit your .htaccess file and add the following:

DirectoryIndex index.htm

This would also work if you have designed a large website and made the first page named something like 'mainpage.htm', just replace index.htm with the first page you want people to see when they come to your site.

Share |
Want to read this in another language?