//flex table opened by JP

Click to See Complete Forum and Search --> : Getting rid of .htm & .html extension; how?


kareem
01-13-2003, 12:29 PM
Hello folks...

When I see many major websites, the company will point people or clients or customers to a specific area of their site by saying go to www.whatever.com/something.[/url]

For example, if I had a website about cars and I wanted to send people to a specific area of this site where they could buy cars, I would say something like, go to "www.cars.com/buy".

The issue is that there's no file extension (.html or .htm) at the end of that URL. How can I get my site to do this?

Right now, here's my page www.heyjoojoo.com/Weather/weather.htm .

I would like to be able to point people toward "www.heyjoojoo.com/weather" and have the page show up properly. Instead I get this: www.heyjoojoo.com/weather .

Do I have to make Dreamweaver do this? How?

I hope this is easy to follow.

chubtub
01-13-2003, 01:21 PM
I know that in IIS you can designate a default web page for your folders on the server itself.

So if you said that I want Mypage.htm to be the default web page you could then path out to the folder only and not the total address. The server seeing that there is no exact URL specified would go to the default web page.

DocEvi1
01-13-2003, 01:49 PM
that is easy. the url whatever.com/something refers to a folder something in the root directory. Hence all you need to do is make a folder called something...to make the default page (I highly doubt kareem is using his own, customisable IIS or similar) is to name the .htm page default.htm(l) or index.htm(l), that is default for every server across the world, everywhere.

Stefan

chubtub
01-13-2003, 02:20 PM
Ya, give index.html index.htm and default.htm default.html a shot and see the if they work. If they work either do redirect to your page or name your page the to one that works.

If it is a IIS server they may also have default.asp if you are using asctive server pages. I do not know if PHP servers have a default.php.

kareem
01-13-2003, 02:33 PM
When you say, make a page the default page, do you mean make it the default homepage?

Because, now I have the index.htm set as the default homepage. In dreamweaver, they give you the option of setting specific pages as the homepage. I'm not sure if that's what all of you mean.


Kareem

Nini-Veh
01-13-2003, 03:30 PM
The homepage is the index of your whole site. Now you want to make the index page of a level below the main level.

you create a new folder in your webdirectory, say for instance

www.mysite.net/NewFolder

The default page for this (either index.htm or default.htm, depending on what your webhost has decided) will automatically be accessed, and its true name will be
www.mysite.net/NewFolder/index.htm (or default.htm). However, your users can reach it via www.mysite.net/NewFolder You must call it index.htm or default.htm

It's easy to create new folders in your webdirectory, especially if you upload your webpages via ftp.


:t

kareem
01-13-2003, 05:11 PM
Thank you all for bringing me yet one step further into the web development world.

I never knew any of this before. Now, I can fly away with it. Hopefully my ISP will allow for me to do this - we'll see.


Kareem

DocEvi1
01-14-2003, 02:21 PM
Originally posted by kareem
When you say, make a page the default page, do you mean make it the default homepage?

Because, now I have the index.htm set as the default homepage. In dreamweaver, they give you the option of setting specific pages as the homepage. I'm not sure if that's what all of you mean.


Kareem

it always dangerous to play with top-notch-complicated web-development tools when you don't understand the basics...

Stefan