• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

.html in url?

L

lennie

Guest
Suddenly this morning one of the sites on my server stopped shopped showing up. The reason. . . when you put the URL in the browser addess bar, it forces the file index.html (http://website.com/index.html). The problem here is that the default page has always been index.shtml. So the index.html didn't exist, so a page not found error appeared.

I have added an index.httml page so the site works but the url still shows in the address window as http://www.findbliss.com/index.html
click here to see what I mean.

The link above goes to :http://www.findbliss.com/ without the index.html.

Help, this is annoying. . .
 
Create an .htaccess file inside the directory.
Inside that file (or opening an existing one), add this line:

DirectoryIndex index.shtml index.html

This will force all browsers to automatically check for the shtml first, then fall back on html if it does not exist.
 
Back
Top