Cheerful Godwin
Cheerful Godwin

Reputation: 51

My website won't open unless I add "/index.html" to the end of it

My Website was finally live when I realized that I can't get to it unless I add "index.html"

I think I know what I did but I don't know how to fix it....

I deleted the "index.html" file from my server to start all the way over and then when I made a new "index.html" and tried it. it would displays this...

" Forbidden

You don't have permission to access / on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

And when I add "/index.html" to the end of my domain.com it works.... perfectly.

Please help I would like to get this site back up in the next few days.

Upvotes: 1

Views: 15689

Answers (4)

UrbanDev
UrbanDev

Reputation: 183

This should be an easy fix. Do you have full admin access to the domain? The domain registrar may have your public folder under a special route. Is it possible that you uploaded the file to an incorrect folder? You should not have to add "/" to access the index file in order for it to work.

Is your website still live?

Upvotes: 0

Dacker
Dacker

Reputation: 892

Maybe the index.html isn't set as default document anymore or not on top of all default documents?

Upvotes: 0

Birdy
Birdy

Reputation: 773

Check the htaccess file and if there is not one you can create one and upload it to your server.

in the file you should have a line like this:

DirectoryIndex index.html

If not, Again create the file and add that line of code. This will direct all traffic to your index.html page when they enter your domain name or any traffic going to that domain name.

Upvotes: 2

limits
limits

Reputation: 295

I'm not an expert, but this is because the "default document" setting needs to be set so that navigating to a directory automatically directs to index.html.

Here's how to do it in IIS.

Upvotes: 0

Related Questions