Worpress Permalink Update – Error 400 Issue

This is One of the biggest issues/idiotic issue I have recently faced. I have wasted such long time to find solution. This issues was totally confusing as the issues occurs only when we edit the permalinks to seo based/ only custom permalinks.

Then you may leads to totally new issue error

Error 400: Bad Request
Your browser sent a request that this server could not understand.

I was trying fix this using various ways , but it was a total disaster. Finally after R&D I found the issue generated at the sever end. Then I found the issue came from mod_security firewall.

This is One of the biggest issues/idiotic issue I have recently faced. I have wasted such long time to find solution. This issues was totally confusing as the issues occurs only when we edit the permalinks to seo based/ only custom permalinks.

Then you may leads to totally new issue error

Error 400: Bad Request
Your browser sent a request that this server could not understand.

I was trying fix this using various ways , but it was a total disaster. Finally after R&D I found the issue generated at the sever end. Then I found the issue came from mod_security firewall.

From my understanding the issues  can come in the following

  • mod_rewrite is disabled:Please check with your server admin and make sure that mod_rewrite is  not disabled at .htaccess level. 
  • .htaccess in the root folder is not writable: Please check the permission on the root .htaccess file( user chmod or use FTP too to update it) If it is not there create it it and give it right permissions(777 | 666). 
  • mod_security is enabled: You can also disable the same by adding the following codes to .htaccess . If Still You have issues please check the server admin to disable it.
<IfModule mod_security.c>
 SecFilterEngine Off
 SecFilterScanPOST Off
 </IfModule>

Reference http://codex.wordpress.org/htaccess_for_subdirectories

From my understanding the issues  can come in the following

  • mod_rewrite is disabled:Please check with your server admin and make sure that mod_rewrite is  not disabled at .htaccess level. 
  • .htaccess in the root folder is not writable: Please check the permission on the root .htaccess file( user chmod or use FTP too to update it) If it is not there create it it and give it right permissions(777 | 666). 
  • mod_security is enabled: You can also disable the same by adding the following codes to .htaccess . If Still You have issues please check the server admin to disable it.
<IfModule mod_security.c>
 SecFilterEngine Off
 SecFilterScanPOST Off
 </IfModule>

Reference http://codex.wordpress.org/htaccess_for_subdirectories

Subin George
  • Xochitl Wichterman

    Awesome post! I will keep an on eye on your blog.

  • Emiliy Duff

    Great advice and tutorial, thanks!

  • Joey Warsme

    Hello, have you been allowing any advertising in your website? I would love to purchase a banner for a couple of months promoting my my personal website which is closely related. Let me know, or give me an email that I can reach you at. Many thanks!

  • glass etching cream

    This is a fantastic web page, will you be involved in doing an interview about how you developed it? If so e-mail me!