Im hoping you can help me, a newbie so apologies if this is an old question - Im about to design a site and i would like the filenames to be for example www.mycompany.co.uk/about/ as opposed to www.mycompany.co.uk/about.htm therefore ditching the file extension.

it just looks neater I think and wondered how to do it...

I think its just a case of placing an index.htm file in a folder called about? Is this corect or am i completely wrong?

Again, thanks in advance and apologies too if the experts are fed up of this question!

Recommended Answers

All 4 Replies

I believe the file extension is required.

some acceptable addresses would be:
-www.mycompany.co.uk/index.html
-www.mycompany.co.uk/about.html

If someone types -www.mycompany.co.uk/ in the address bar it automatically displays the index.html file. People are used to file extensions in their address bar. Provide links on your website to these other pages and you should be fine.

W3Schools provide good website tutorials, have a look.

simpler than it looks . . .
the url http://www.thissite.com/thisfolder/
is a url to the folder not to a file
when the folder opens, the default file
index.php index.html default.asp or whatever is appropriate to the server configuration opens and runs
in the same way as http://www.thissite.com/ acutally opens http://www.thissite.com/index.html
to make your urls do this, put a default file in the folder and make urls reference the folder
In apache servers mod_rewrite can trim all displayed urls to the folder name

yep. couldn't have said it better myself

I think its just a case of placing an index.htm file in a folder called about? Is this corect or am i completely wrong?

As you might have realized from previous explanations...
No! - you are in fact correct! :')
Regards.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.