.html suffix prob

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Denis Jevon
    New Member
    • Nov 2006
    • 2

    #1

    .html suffix prob

    I have a problem which is probably simple to solve but I can't find the answer. In the past I have added pages to sites I have built with names like aboutus.html and when I or anyone else wants to view them they simply type the URL + /aboutus and the page comes up fine. Recently I built a site www.sapphirecoa ching.com and I added a page with the filename reverse-therapy.html. If I type www.sapphirecoa ching.com/reverse-therapy in the browser I get a 404 message 'page is not on server'. If however I add the .html suffix to the URL it works. How can I get it to go straight to the page without typing the suffix in the address window. (I just want to put www.sapphirecoa ching.com/reverse-therapy on all publicity). Heres hoping someone knows why this is working on one site but not the other, Thanks Denis Jevon. BTW the sites are on different host servers I am running Mac Mini OSX G4 processor, using Firefox, Dreamweaver MX and JSFTP
  • snowdonkey
    New Member
    • Aug 2006
    • 37

    #2
    In your site's main directory make a folder called reverse-therapy. Inside that folder put your reverse-therapy.html file and rename it index.html. Now people can use www.sapphirecoa ching.com/reverse-therapy and view the correct file. When a file is titled index, it becomes the default file for a folder if none is specified.

    Comment

    • AricC
      Recognized Expert Top Contributor
      • Oct 2006
      • 1885

      #3
      You probably want an index file in all of your folders as well this will prevent people from seeing the contents of the folder.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        You are probably using Apache and this is a simple setting there but I haven't used Apache in years so I don't remember what it is. There is an Apache forum here, or at least Linux or something.

        Comment

        • Denis Jevon
          New Member
          • Nov 2006
          • 2

          #5
          Originally posted by snowdonkey
          In your site's main directory make a folder called reverse-therapy. Inside that folder put your reverse-therapy.html file and rename it index.html. Now people can use www.sapphirecoa ching.com/reverse-therapy and view the correct file. When a file is titled index, it becomes the default file for a folder if none is specified.
          Thanks snowdonkey, this is a very helpful and concise reply - makes perfect sense. I will do it now!

          Comment

          Working...