How to Prevent .htaccess from being overwritten by WordPress

By default WordPress will erase the customization in .htaccess during the updates. In-order to prevent WordPress from overwriting the customization in .htaccess, update the custom rules before the following tag.

# BEGIN WordPress
... do not put any customizations here ...
# END WordPress

This will keep the customization unchanged during WordPress updates.

Leave a Reply

Your email address will not be published. Required fields are marked *