After transferring my website from localhost on my host server and changing the theme to a newer one.
Performing any action including saving settings, installing plugin, saving plugins settings page and basically any saving action which is related to wordpress api will redirect me to home page.
I have tried to disable all plugins and even change to default theme but the issue still persists.
I also, did some research and a .htaccess code was suggested to be added on and it didn't work either. the code is as follow:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
I performed security scan using cpanel anti virus as well as wordfence scanner and still no luck.
My final though was maybe a wordpress core file was corrupted therefore, all files in wp-admin
and wp-includes
and also root files were replaced.
I am currently using PHP 7.2.
Any suggestion? It is driving me crazy
After transferring my website from localhost on my host server and changing the theme to a newer one.
Performing any action including saving settings, installing plugin, saving plugins settings page and basically any saving action which is related to wordpress api will redirect me to home page.
I have tried to disable all plugins and even change to default theme but the issue still persists.
I also, did some research and a .htaccess code was suggested to be added on and it didn't work either. the code is as follow:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
I performed security scan using cpanel anti virus as well as wordfence scanner and still no luck.
My final though was maybe a wordpress core file was corrupted therefore, all files in wp-admin
and wp-includes
and also root files were replaced.
I am currently using PHP 7.2.
Any suggestion? It is driving me crazy
Share Improve this question asked Jun 23, 2019 at 7:17 MeMoMeMo 812 silver badges7 bronze badges 3 |1 Answer
Reset to default 1After Spending many hours on this seemingly insoluble problem, as it turned out the issue was generated from mod security
being enabled.
Although, I disabled it myself from cpanel
, it had to be turned off from server and a level deeper in hosting as well.
So if you encountered this knot contact your web host in order to disable mode security
.
I have also heard that turning this feature off is going to endanger my website and an extra layer of security will be lost, any suggestion about the way to sustain mod security as well as not getting involved with the prime issue?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745376900a4625041.html
function mmt_flush_rewrite_rules() {flush_rewrite_rules();} add_action( 'init', 'mmt_flush_rewrite_rules' );
didn't work – MeMo Commented Jun 23, 2019 at 9:19