Hi! My english is not very good, sorry for any spelling mistakes.
Using .htaccess I want to add www. and remove/hide the .html.
It should look something like this:
BEFORE --
http://example.com/whatever.html
AFTER -----
http://www.example.com/whatever
I have .www adder:
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1
And .html remover
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [N]
How to connect them?
NOTE: It want remove/hide .html from each .html file on my page.
I use this tool to test my .htaccess file: https://htaccess.madewithlove.be
Thanks for any help.