homepage - Any action in wordpress redirects me to home page

After transferring my website from localhost on my host server and changing the theme to a newer one.Performing any ac

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
  • What's in your .htaccess file? Maybe try hard flushing rewrite rules. There are some examples here: codex.wordpress/Function_Reference/… – essexboyracer Commented Jun 23, 2019 at 8:18
  • Default wordpress rewriting rules – MeMo Commented Jun 23, 2019 at 9:16
  • used 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
Add a comment  | 

1 Answer 1

Reset to default 1

After 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

相关推荐

  • homepage - Any action in wordpress redirects me to home page

    After transferring my website from localhost on my host server and changing the theme to a newer one.Performing any ac

    6小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信