• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

.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