I moved a Wordpress site to a new server. The site is installed in a subdirectory and the .htaccess in the root forwards to it like so:
RewriteEngine On
RewriteCond $1 !(^wpfolder/)
RewriteRule ^(.*)$ wpfolder/$1 [L]
I've changed the site_url and home entries in the wp_options table in the database. Everything is working fine - except if I visit site.com/wp-admin to login - it redirects to the login page like so:
site.com/wp-login.php?redirect_to=http%3A%2F%2Fsite.com%2Fwpfolder%2Fwp-admin%2F&reauth=1 (notice the 'wpfolder' in the redirect_to value)
When I enter the correct username and password, nothing happens and I get the login box again. I can log in no problem by visiting site.com/wp-login.php - but I'd really like to solve this redirect problem if possible.