4 Replies Latest reply on Oct 27, 2008 12:56 PM by ed19

    URL without .html extension

    Level 7
      Hi;

      How do I set up a page so that the .html or.htm extension is not required to
      be included when typing in the URL?

      Thanks;

      Pat


        • 1. Re: URL without .html extension
          Level 7
          > How do I set up a page so that the .html or.htm extension is not required
          > to be included when typing in the URL?
          >

          Two options
          1/ Name the file in accordance with the default file name set by your host -
          usually index.html/php for *nix servers or default.htm/asp/aspx on windows
          servers
          then you.com/folder/index.html can be accessed from you.com/folder

          2/ set up some sort of rewrite rules, eg
          you.com/widgets -> you.com/products.asp?product=widgets
          you.com/grommets-> you.com/products.asp?product=grommets

          Cheers,
          Jon


          • 2. Re: URL without .html extension
            Level 7
            Make a folder and place a default home page inside it. Example:
            yoursite.com/widgets/index.html

            When people go to www.yoursite.com/widgets they will get the default
            index.html page.



            Nancy O.
            Alt-Web Design & Publishing
            www.alt-web.com


            • 3. Re: URL without .html extension
              Level 7
              Thanks all.

              Pat
              "Nancy O" <nancyoshea1@NOSPAMatt.net> wrote in message
              news:gdt4dr$dcm$1@forums.macromedia.com...
              > Make a folder and place a default home page inside it. Example:
              > yoursite.com/widgets/index.html
              >
              > When people go to www.yoursite.com/widgets they will get the default
              > index.html page.
              >
              >
              >
              > Nancy O.
              > Alt-Web Design & Publishing
              > www.alt-web.com
              >
              >


              • 4. URL without .html extension
                ed19 Level 1
                Just curious, what are the pros and cons for doing this ?