By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,916 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,916 IT Pros & Developers. It's quick & easy.

HELP: How to avoid typing .html?

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On 21 Aug 2003 09:58:30 -0700, in****************@yahoo.com wrote:
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.


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!

Jul 20 '05 #2

P: n/a
in****************@yahoo.com wrote:
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


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

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #3

P: n/a
>>>>> "Jane" == Jane Withnolastname <Ja**********************@yahoo.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
<me****@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Jul 20 '05 #4

P: n/a
in****************@yahoo.com wrote:
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


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

--
Shawn K. Quinn
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.