Okay, I maintain 9 WordPress installations. And two (both on this server – but not this blog) are causing trouble for a long time and many versions of WordPress now. If I try to access blog-url/wp-admin/ and the blog is not remembering me, I am redirected to blog-url/wp-login.php?redirect_to=blog-url/wp-admin/. But instead of a login page I only see:
Forbidden
You don’t have permission to access /wp-login.php on this server.
If I delete the URL parameter ?redirect_to=blog-url/wp-admin/ the page blog-url/wp-login.php is accessible without problems. So dear Lazyweb, how can I solve this problem?
One of the troublesome blogs is online since WordPress 2.3 and the other one is a fresh WordPress 3.0 installation without plugins. One has a .htaccess file, the other one not. One is directly linked to a subdomain and the other one is in a subdirectory. It looks like all the files and directories have the correct permissions. And other blogs (new and old) on the same server don’t have this problem…
The new blog is for one of my relatives and I don’t want to tell them, that every time they see this error (actually there are a few more cases where it can occur), they have to modify the URL by deleting the redirect_to parameter. So why is WordPress confused by the redirect_to?