In the following you will find a typical. htaccess file for an average WordPress installation, which I am in charge of as administrator. Beside the standard code block which WordPress automatically inserts to produce permalinks I have added some more code blocks.
In the first place you will find the code that is necessary when changing your website from http to https. This block should be before the code block of WordPress
Under the standard block of WP there are two specifications that greatly increase the security of WP.
This is followed by two snippets of code, which greatly increase the performance of the website.
Last but not least, you will find a snippet to help with PHP memory problems.
The single code snippets are commented in detail and you can easily remove the blocks you don't need.
The information in this. htaccess file is reduced to the minimum necessary and is based on many years of practical experience.
[Additional proof of work in the readme.md]
Posted on Utopian.io - Rewarding Open Source Contributors