Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When opening website, index.html doesn't automatically open? [closed]

Tags:

html

When going to my website, qlite-usa.com, index.html does not load. I get an error message on the main page. But if I go to qlite-usa.com/index.html, the website loads just fine.

How do I make it so qlite-usa.com automatically sends me to qlite-usa.com/index.html?

I've tried changing index.html to home.html and others, none of that worked.

I use godaddy.

like image 433
user2596430 Avatar asked Jul 22 '13 16:07

user2596430


People also ask

Why is my index html not loading?

If you've just placed an index. html or index. php file on your server's document root folder, for example: /public_html/ and you're still not getting it to load these files upon a request to your domain, chances are your server is missing a specific configuration for the "DirectoryIndex Directive".

How do I open index html in browser?

Assuming Google Chrome is set as your default program, you should simply double tap the HTML document and it will naturally open in Chrome.


1 Answers

As mentioned in the comments, this is a server configuration issue. If it is allowed by your host, try creating a file in your root directory named: .htaccess (yes, it is a file with no name, just an extension). Inside this file, save the following content:

DirectoryIndex index.html
like image 53
Alfie Avatar answered Oct 23 '22 05:10

Alfie