Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

URLs without .html

7 views
Skip to first unread message

Martin

unread,
Nov 6, 2010, 4:26:38 PM11/6/10
to
Hi all,

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

Magno

unread,
Nov 6, 2010, 5:08:04 PM11/6/10
to

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.

<http://httpd.apache.org/docs/2.1/howto/htaccess.html>

Martin

unread,
Nov 6, 2010, 5:11:16 PM11/6/10
to

Excellent. Thanks.
I didn't know what to look for.

cheers
Martin

Magno

unread,
Nov 6, 2010, 5:36:07 PM11/6/10
to

You are welcome, so... is it Apache what you are using?

Martin

unread,
Nov 6, 2010, 8:27:07 PM11/6/10
to

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

0 new messages