HELP: How to avoid typing .html?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • inquisitiveman2002@yahoo.com

    HELP: How to avoid typing .html?

    Hello comrades,

    I want someone to go directly to a link page by typing the URL without
    having to type the .html

    For example, if someone types in a URL that is
    http://www.whatever.com/123.html then he/she will definitely get to
    the page.
    Is it possible to configure just have it where
    someone can just type in http://www.whatever.com/123 and go directly
    to that page w/o the .html

    I have seen other sites that can do this,but not sure if it is the www
    authoring software that does this or maybe the WebServer itself.
    Thanks everyone!! BTW, i am using NetOjects Fusion v7.0.
  • Jane Withnolastname

    #2
    Re: HELP: How to avoid typing .html?

    On 21 Aug 2003 09:58:30 -0700, inquisitiveman2 002@yahoo.com wrote:
    [color=blue]
    >Hello comrades,
    >
    >I want someone to go directly to a link page by typing the URL without
    >having to type the .html
    >
    >For example, if someone types in a URL that is
    >http://www.whatever.com/123.html then he/she will definitely get to
    >the page.
    >Is it possible to configure just have it where
    >someone can just type in http://www.whatever.com/123 and go directly
    >to that page w/o the .html
    >
    >I have seen other sites that can do this,but not sure if it is the www
    >authoring software that does this or maybe the WebServer itself.
    >Thanks everyone!! BTW, i am using NetOjects Fusion v7.0.[/color]

    Make a series of directories with the name of each of your pages, then
    make an index.html page for each of the directories. The only content
    of the index.html page should be a redirect to the actual page. Using
    your example:

    1. Make directory 123.
    2. Make index.html and put in directory 123
    3. Use this code in your <head>:

    <META HTTP-EQUIV="Refresh" CONTENT="0;
    URL=http://www.whaever.com/123.html">

    This will allow people to access your page by typing 123.html or by
    simply typing 123, which will then redirect them to 123.html

    Alternately, you could eliminate step three and just have the
    index.html file in each directory be the actual page. Both options are
    quite tedious. It's a whole lotta work just to relieve people of five
    key presses!

    Comment

    • David Dorward

      #3
      Re: HELP: How to avoid typing .html?

      inquisitiveman2 002@yahoo.com wrote:
      [color=blue]
      > Is it possible to configure just have it where
      > someone can just type in http://www.whatever.com/123 and go directly
      > to that page w/o the .html[/color]
      [color=blue]
      > I have seen other sites that can do this,but not sure if it is the www[/color]

      Either make it an index file in the directory, or configure your webserver
      to do it.

      --
      David Dorward http://dorward.me.uk/

      Comment

      • Randal L. Schwartz

        #4
        Re: HELP: How to avoid typing .html?

        >>>>> "Jane" == Jane Withnolastname <JaneWithnolast nameNOSPAM@yaho o.com> writes:

        Jane> 3. Use this code in your <head>:

        Jane> <META HTTP-EQUIV="Refresh" CONTENT="0;
        Jane> URL=http://www.whaever.com/123.html">

        Uh, *no*.

        Googling back in this news group (groups.google. com) with
        "http-equiv-refresh" will give you lots of reasons why this is always
        the WRONG thing to do.

        --
        Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
        <merlyn@stonehe nge.com> <URL:http://www.stonehenge. com/merlyn/>
        Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
        See PerlTraining.St onehenge.com for onsite and open-enrollment Perl training!

        Comment

        • Shawn K. Quinn

          #5
          Re: HELP: How to avoid typing .html?

          inquisitiveman2 002@yahoo.com wrote:
          [color=blue]
          > Hello comrades,
          >
          > I want someone to go directly to a link page by typing the URL without
          > having to type the .html
          >
          > For example, if someone types in a URL that is
          > http://www.whatever.com/123.html then he/she will definitely get to
          > the page.
          > Is it possible to configure just have it where
          > someone can just type in http://www.whatever.com/123 and go directly
          > to that page w/o the .html[/color]

          It's easy enough to do with access to server config. "Options Multiviews" in
          Apache will do it.

          --
          Shawn K. Quinn

          Comment

          Working...