Using .htaccess to change my website URLs

Posted by James P on Stack Overflow See other posts from Stack Overflow or by James P
Published on 2010-06-05T18:52:57Z Indexed on 2010/06/05 19:02 UTC
Read the original article Hit count: 107

Filed under:
|
|

I have some pages organised like this:

http://localhost/index.html
http://localhost/download.html
http://localhost/contact.html

And I need them changed to suit the following URL structure:

http://localhost/
http://localhost/download
http://localhost/contact

Without making sub directories and putting in pages as index.html. As far as I know .htaccess can be used for this, but I have no idea what I need to add to my .htaccess file to make this work.

Can anyone provide some help? Thanks.

© Stack Overflow or respective owner

Related posts about url

Related posts about .htaccess