Using ModRewrite to get rid of extentions
- by PHPNooblet
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!