Before i start does it matter if I end with the forward slash/
No, but i suggest you pick one or the other. You could even set up a redirect to force the type you choose.
Can you do me a bit of code so I can remove the .html from top level, like index.html, tutorials.html, infromation.html, aboutme.html and contact.html.
This should work for all document root level files
- Code: Select all
# Check if the file exists in your document root with a .html extension.
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^([^/]+)/?$ /$1.html [QSA,L]