Click to See Complete Forum and Search --> : Please Help! Hiding .htm extensions in URL


webGirl20032003
02-20-2003, 11:18 AM
If I have a page called

www.myGreatSite.com/pictures.htm

how do I change it so I can just type in

www.myGreatSite.com/pictures

for the URL?

Thanks!!

pyro
02-20-2003, 11:31 AM
Make a new directory on your server named pictures and upload pictures.htm as index.htm

DaveSW
02-20-2003, 11:38 AM
I've tried to check the page to see what you're talking about but I get a page not found error. If you own the domain (www.mygreatsite.com) there should be a file called index.htm on the root directory - i.e. the first level - not in a folder. You could rename your page to index.htm and move it up a level. This would mean you could type in http://www.myGreatSite.com and your page would appear instead of the remote hosting page which does occur.

You can then use hyperlinks to move people to other pages.

Does this help or have I misunderstood?

spufi
02-20-2003, 12:17 PM
DaveSW, the URL is used as an example of an URL. I doubt that's the actual URL.

index.html is generally the default page for a directory so that is what the browser will look for first. If you link to a page with just "picture" as the name the browser is going to look for a directory named picture. The .html is needed to tell the browser to look for a HTML file. If you want your whole site to not point to any HTML specifically, then yes, you need to create a directory name for each page and then have a page in that directory named index.html. This way you can point to the directory and not the index page itself. I would find this is be way more work then I would want. I'm not sure why you want to hide the .html part, but if you wanted to knock yourself out and do it, I guess doing the whole make a directory route for a couple pages would be ok.