I have recently migrated my site over from a host which used nginx to one using Apache. Everything migrated fine except for the htaccess file and settings, which maintain these lines pertaining to nginx. When these lines are in the htaccess, Apache returns a 500 server error. I need help figuring out what is making WordPress keep adding these lines – I can edit htaccess to make the site come back, but every time permalinks are flushed they come back.
I am running WP Rocket as my caching plugin, but the issue remains when it is deactivated.
Options -Indexes
<IfModule mod_headers.c>
Header set X-Endurance-Cache-Level “0”
Header set X-nginx-cache “WordPress”
</IfModule>
