WordPress Error : Editor redirecting to localhost/removecookies

wordpress logoSometimes while using the wordpress editor for editing the wordpress files like header.php, footer.php, on saving the file the page is getting redirected to localhost/removecookies and the file is not saved.

Let us see why this happens and what is the solution for the same.


This issue is because of Mod Security which is present on the server side.

Some rules of Mod Secutiry are blocking the action which results such error.

To get the error fixed, one should contact their hosting provider explaining the steps to replicate the error on their side.

Also, don't allow to disable Mod security for your account as this may lead to insecurity. Ask them only to disable that specific rule of Mod security which is blocking the action.

Hope this helps !  🙂

If any feedback, queries are always welcome!

Share on Facebook0Share on Google+0Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn0Share on Tumblr0Pin on Pinterest0Email this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing Knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *