How can I get rid of the .html extensions in webpages. For example,
www.domain.com/products instead of www.domain.com/products.html
The webserver I'm talking about is apache.
Also I wonder if that's possible when a website is hosted by
a third party hosting company.
thanks in advance
Martin
If in this case, the web server is Apache, you must use a module called
mod_rewrite, whose function is to rewrite urls (duh), depending on given
rules.
Beginner’s tutorial I found on Google.-
<http://www.workingwith.me.uk/articles/scripting/mod_rewrite>
And the official manual.-
<http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html>
If you are using a free hosting or anything where you have no access to
the vhosts files... you can use a .htaccess file to define your rules
per directory.
Excellent. Thanks.
I didn't know what to look for.
cheers
Martin
You are welcome, so... is it Apache what you are using?
My private website is hosted from my computer (apache).
However, I need to redesign a website for someone else
and do some SEO for it (that one is hosted by a 3rd party
company)
cheers
Martin