I’m adding a http://www if it’s missing in the URL. If a redirect happends the .html extension gets added for some reason:
example.com/about > htaccess > http://www.example.com/about.html
Why does the .html gets added?
This is my htaccess:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
I’ld like to have the link without the .html part like this:
example.com/about > htaccess > http://www.example.com/about
Thanks.
Uli
Do this:
I suggest you to use
http://www.example.com/whateverinstead ofhttp://www.example.com/whatever.htmlin yourh refs.