WordPress Adding NGINX Config to htaccess, breaking site

[ad_1]

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>

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer