Web Hosting Talk







View Full Version : Page names and Folders


Trophimus
04-14-2006, 10:00 AM
Hello,
I have yet to figure out how to do the following. Any help/advice would be GREATLY appreciated:

* How would I be able to set my pages up so the .htm/.html are not required (e.g. so it would be www.techpresence.net/whatever -- Without the .htm)
* How would I be able to set my pages up so there are like sub pages in directories (e.g. I would like for it to be www.techpresence.net/services/hosting or whatever...)

How would I do this?

Thanks :)

dgeorge
04-14-2006, 10:26 AM
Might want to check out mod_rewrite if you are using apache

This is geared for a different purpose but gives an idea of what it is capable of:

http://www.devshed.com/c/a/Apache/Search-Engine-Friendly-URLs-with-mod-rewrite/

Basic example :
Browser: www.domain.com/index
Apache: RewriteRule ^(.*) /$1.html
Will take you too: www.domain.com/index.html


This can be expanded on to do what you arre wanting with the folders

Qani
04-14-2006, 11:10 AM
Just use different folders containing index.htm files, then link to the folder instead of the file.