1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

.html in url?

Discussion in 'Plesk for Linux - 8.x and Older' started by lennie, Aug 26, 2006.

  1. lennie

    lennie Guest

    0
     
    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. . .
     
  2. NightStorm

    NightStorm Guest

    0
     
    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.
     
Loading...