Can’t login to admin after domain mapping
-
Hello,
I have a subdomain WP multisite setup. I used the native mapping feature to map gfvpetboutique.com to petboutique.guiltfreevegetarian.com using the instructions here.
The problem is that I can’t access the admin area for the mapped domain. I automatically get redirected to this URL:
https://gfvpetboutique.com/wp-login.php?redirect_to=http%3A%2F%2Fgfvpetboutique.com%2Fwp-admin%2F&reauth=1I’ve tried setting the site URL to the mapped domain and the home URL to the subdomain (and vice versa) but the mapping only works if both are set to the mapped domain, but again I lose access to the admin area.
I’ve also tried adding this code to my wp-config file but it doesn’t make a difference:
define(‘ADMIN_COOKIE_PATH’, ‘/’);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
define(‘SITECOOKIEPATH’, ”);I am not using a dedicated IP, but all of my domains are pointed to the same Cloudflare name-servers. Any help will be greatly appreciated. I really don’t want to use a plugin.
Thank you!
The page I need help with: [log in to see the link]
- The topic ‘Can’t login to admin after domain mapping’ is closed to new replies.