500 internal server error after creating a folder in my WordPress site

  • Answered
I set up a Wordpress folder in my site and got a 500 internal server error when I tried to rename a directory in the Wordpress admin page. I also got an error 406 - not acceptable at one point.
Hello ayoukey, Sorry to hear about your WordPress issues. A 500 internal server error usually means your PHP script did something unexpected by the server, and a 406 - not acceptable error is caused when ModSecurity blocks a specific type of request from happening on the server. The 500 error you were getting appears to be caused by some bad .htaccess rules going on:
Sat Jul 05 16:43:52 2014] [error] Request exceeded the limit of 10 internal redirects due to probable configuration error. referer: http://www.example.com/portfolio/
It looks like that Sat Jul 05 16:43:54 time-stamp was the last time that problem happened, so I'm assuming you've resolved that issue now? The 406 ModSecurity error was:
[Sat Jul 05 18:37:26 2014] [error] ModSecurity: Access denied with code 406 (phase 2). [id "13053"] [msg "POST to wp-login.php without redirect_to"] [severity "WARNING"] [tag "WEB_ATTACK/SHELL ACCESS"] [hostname "example.com] [uri "/thebeadedcatseye/wp-login.php"]
I've seen this type of behavior before when a user is using some sort of WordPress login plugin. The default WordPress login system passes a hidden redirect_to variable, if you take a look at your /thebeadedcatseye/wp-login.php script and hit Ctrl-U to view the page source you should see this:
<input type="hidden" name="redirect_to" value="http://example.com/thebeadedcatseye/wp-admin/" />
If you have a login plugin that isn't including that value, ModSecurity on the server will intercept and block that request. If you're still having that problem you might need to contact the plugin developer to let them know about this issue. If you're still having problems with either errors, please let us know! - Jacob