WordPress Add/Edit Post Redirects to home page


WordPress Add/Edit Post Redirects to home page : Sometimes we face problem while posting content in worpress. There can be many reason for this problem. I was facing the the problem when adding or editing the post. When i click on publish button it was redirecting me to home page always. Here in this tutorial we are going to explain how you can fix this problem.


WordPress Add/Edit Post Redirects to home page

In my case it was mod_security issue. So disabled it and it worked for me. You can disable it by adding the following in .htaccess file.

WordPress Add/Edit Post Redirects to home page:

<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

Which will fix your problem.

If the above soultion does not works talk to your hosting provider and ask them to disable the mod_security.

Note : ModSecurity is an open source, cross-platform web application firewall (WAF) module. Disabling this may cause security threat so be sure before disabling it.

Advertisements

Add Comment

📖 Read More