I recently tried my hand, once again, at installing another WordPress multisite/network on a Windows machine, but this time using subdomains instead of directories for blogs. The process was identical to my first time around, but a common problem arose once I got the network successfully set up – I couldn’t login to any of the subdomain blogs. It was a never ending looping of redirects that made it impossible to access the admin pages of any of the newly created blogs.

Despite it being a common problem, none of the common solutions seemed to work (clear cookies, change siteurl, etc). But adding this bit of code to wp-config.php did the trick:

define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');

Hope this helps somebody else. Thanks to the folks on this thread on the WordPress forums.

 

3 Responses to Can’t log in to your WordPress subdomain blogs?

  1. Jidat says:

    yes thanks you!!
    hi, i’m web design from Indonesia. realy i like wordpress very much :)

  2. Chris says:

    Wow, thanks for posting this! This is exactly what I needed!!

  3. Jonathan says:

    Thanks – I think you just saved me a shedload of time and stress!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>