Log in

View Full Version : How to make your site accessable without .html or .htm



ratih
11-12-2008, 10:19 AM
Hi there,

I want to know how to make website accessable without having to complete the link with .html or . htm?

Is there any script for that? Hope somebody could help
thanks a lot :D

djr33
11-12-2008, 11:14 AM
If your page is index.htm (.html, etc), then you can just use the address of the folder, like:
http://yoursite.com/folder/ [/index.html]

BLiZZaRD
11-12-2008, 01:47 PM
There are two ways.. the first is to set up content negotiation (http://httpd.apache.org/docs/1.3/content-negotiation.html) This will allow the server to serve up different types of a single file, if your server has one it will display it.

The other... well I am trying to remember where I just saw it... it was as described above and I saw it just a couple days ago... I will post back when I find it.

Medyman
11-12-2008, 05:40 PM
How is your site set up? Unless you're coding something from scratch and still in the planning stages (or are willing to reorganize your entire website), there are some techniques that won't apply.

If you're using PHP & URL variables (e.g. shop.php?category=books&title=the-history-of-books), you could use some .htaccess magic to get the url to be: shop/books/the-history-of-books

That's the same intuitive, SEO-friendly, URI you'll get using most CMS applications (WordPress' "pretty URLs" as a prime example).