So I have hyperlinks on all my pages leading to shop.html and index.html and music.html. Is there a way (without me having to go through every file taking out the .html
) to redirect all these hyperlinks.
I have had a look at .htaccess:
Options +ExecCGI +FollowSymLinks -MultiViews
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ /$1.html [L]
But this doesn't seem to help at all!
If I don't have this file I can still remove the extension and the page is working.