500 server error | WordPress.org

[ad_1]

We use Really Simple SSL on all our agency sites, hosted on the same server, with no issues until today. Through process of elimination, we’ve discovered the plugin randomly adds the following code to the .htaccess (usually when something is saved in wp-admin), which generates a 500 server error. Removing the rule makes the site work again.

#Begin Really Simple Auto Prepend File
<IfModule LiteSpeed>
php_value auto_prepend_file /home/website/public_html/wp-content/advanced-headers.php
</IfModule>
<IfModule lsapi_module>
php_value auto_prepend_file /home/website/public_html/wp-content/advanced-headers.php
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
#End Really Simple Auto Prepend File

We can’t work out where the rule is being added or how to prevent it – checking the ‘do not make changes to .htaccess’ doesn’t work, the rule is still randomly added. It seems to be referencing /wp-content/advanced-headers.php which doesn’t exist.

We’ve disabled the plugin for now, but is there any way we can stop this rule being added?

The page I need help with: [log in to see the link]

 

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