Welcome to the Treehouse Community
Looking to learn something new?
Christopher Montolio794 Points
HELP: How can I get rid of my url extensions
I am using Dreamweaver CS6. I have my website up and running but the only problem is my pages have extensions at the end of them.
How can I make it to where it looks like this
Is this something you can do in Dreamweaver?
Kevin Korte28,109 Points
It's pretty easy to do, but it has nothing to do with dreamweaver.
In your root directory, you will need to make sub folders such as menu, about, and contact.
Than, take your about.html and rename it index.html. Take your menu.html and rename it index.html, and take your contact.php and rename it index.php. You want to put each of these new index files into the correct subfolder, so it would probably be smart to do them one at a time.
Now make sure you have updated all of your links, because most likely you will have broken links!
Why does the work? Browsers will look for the index file automatically! Thats is why your home page is www.example.com; you don't need to give the browser www.example.com/index.html even though that would also be correct.
Randy actually does just this in a chapter of his PHP application.
If you're confused, you can (and I would suggest) at least watching that chapter found here: