I would like someone to re-write my .htaccess to correct the issue I am having.
In simple the .htaccess should perform like the following:
1. Force HTTPS (SSL)
2. Force WWW in the URL.
3. Redirect [url removed, login to view] to the root /
4. Remove the PHP extension on all files
5. Remove any trailing slash to ovoid issues with folders
6. Compress files with gzip
7. Enable browser cahcing
I would like the .htaccess to be fully optimised with the correct tags for SEO such as 301 redirects and be Syntax checked/ validated.
You can reorder the content of the file in any way you feel fit to ensure its working correctly.
Attached in my current .htaccess.
Note: iv changed the domain to [url removed, login to view] for public use.