Using ModRewrite to get rid of extentions
Posted
by PHPNooblet
on Stack Overflow
See other posts from Stack Overflow
or by PHPNooblet
Published on 2009-12-10T08:01:09Z
Indexed on
2010/03/15
9:49 UTC
Read the original article
Hit count: 1160
I would like to get rid of all the file extensions on my site. Except when they are on the index i would like it to say nothing...
change this foo.com/index.html
to this foo.com/
and when the user goes to another page like foo.com/contact-us.html
it will be foo.com/contact-us
RewriteEngine On
RewriteRule ^ this is where i get confused :(
Thanks in advance!
© Stack Overflow or respective owner