.htm (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


mineralking222 -> .htm (3/30/2007 16:46:01)

I've been trying to figure this one out for some time.
What do I have to do to allow a viewer to enter in a URL with a slash and the page name but without having to put .htm at the end.

Example:

www.hydestreethill.com/giants

instead of

www.hydestreethill.com/giants.htm

I'm hosted on Thom's server.

Thanks!

Mineral King




Mike54 -> RE: .htm (3/30/2007 16:58:53)

AFAIK you can't but if you put the page in it's own folder (giants) and make it the index.htm of the folder all a visitor has to do is type in www.hydestreethill.com/giants and the "index" page will come up.[;)]




jurgen -> RE: .htm (3/30/2007 17:07:33)

Put all your "giants" files in a seperate directory called "giants" and rename the giants.htm to index.htm. That should do the trick. You also need to change the links on all other pages to point to the new page.




mineralking222 -> RE: .htm (3/30/2007 17:09:27)

I'll try it. The other pages don't go in the folder I guess, but do the links have to be changed specifically to the folder to get back to the home page?




jurgen -> RE: .htm (3/30/2007 17:14:19)

Put every file in the new directory to keep it away from the original site. It is kinda having a "sub-domain"..... kinda.... [8D]




mineralking222 -> RE: .htm (3/30/2007 17:40:25)

I don't think that will work because then it has to have a URL of
hydestreethill.com/giants/giants.htm

There must be a way because for a while when I was hosted on a different server it worked without the .htm and I didn't create any new folders for it.

Anyone?




jaybee -> RE: .htm (3/30/2007 17:57:19)

If it was a Unix host, I'm not 100% sure if it's possible as I've never tried it, but you can tell the server to parse different files as something else. It may be that there was an htaccess file telling the server to treat all files as .htm ? Anyone know?

I can't try it as I don't have access to my host on this machine.




jurgen -> RE: .htm (3/30/2007 18:06:00)

quote:

ORIGINAL: mineralking222

I don't think that will work because then it has to have a URL of
hydestreethill.com/giants/giants.htm

There must be a way because for a while when I was hosted on a different server it worked without the .htm and I didn't create any new folders for it.

Anyone?



If you change giants.htm to index.htm and put it in the directory ../giants/. Your visitors only have to put in
"www.hydestreethill.com/giants" and your page will show up. Try it.......




jaybee -> RE: .htm (3/30/2007 19:22:40)

That's certainly the way I do it but mk222 seems to be saying that it worked with a file called giants.htm not index.htm

apart from htaccess I can't think of any other way




jurgen -> RE: .htm (3/30/2007 20:42:47)

I guess it can be done with the htacces file. You could redirect an index file to what ever. I still think there should be a directory called "giants". An empty, redirected index file should do it.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.171875