TECHIES WORLD

For Techs.... Techniques.... Technologies....

ApacheCpanelLinuxPHP

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