• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

.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