WordPress.org

Ready to get started?Download WordPress

Forums

Network Login Loop on subdomain (5 posts)

  1. happyclams
    Member
    Posted 2 years ago #

    I am new, so bear with me please. I have searched the forums and also elsewhere and nothing can help me resolve this although it seems to be an issue that people were encountering often with MU. My host is 1and1 in case that matters.

    I setup WP 3.2.1 and enabled a network. I created a secondary site on a subdomain of a different site. For example:

    http://www.mainsite.com - works fine
    moviefest.othersite.com - has issues

    I can log into http://www.mainsite.com/wp-admin fine.

    However, on moviefest.othersite.com/wp-admin it created a basic template and seems to exist, but whenever I try to login with either my main super admin account or another administrator account that I setup, it just takes me back to the login page with a redirect in the URL bar. If I use the wrong password it gives me an wrong password message.

    I can see moviefest.othersite.com "fine" though. Fine is in quotes becasue I cannot post or modify it at all since I can't log in, but it at least exists and looks like the basic template.

    I have tried adding some code to the config.php

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

    but then commented out the cookie domain one because it was giving me an error. I have deactivated all of my plugins except WordPress MU Domain Mapping.

    I have cleared my cache and cookies and tried different browsers and different computers all to no avail.

    Any further suggestions or obvious things that I am doing wrong would be much appreciated.

  2. I created a secondary site on a subdomain of a different site.

    How?

    Generally you make http://www.mainsite.com and make it a network so you can go to http://www.mainsite.com/wp-admin/network

    Then you make a subsite THERE: http://sub1.mainsite.com

    It doesn't know about moviefest.othersite.com

    I'm assuming you made moviefest.mainsite.com and then MAPPED moviefest.othersite.com to there?

  3. happyclams
    Member
    Posted 2 years ago #

    Yes, that is typical, but it is not what I did.

    Rationale:
    mainsite.com is semi-professional site and so I did not want moviefest as a subdomain of it. I recently installed WP on it.

    othersite.com is a personal site but does not have WP on it.

    I thought that it would make sense to to use the same install rather than a new install to set up moviefest.othersite.com

    Process:
    I created moviefest.othersite.com subdomain in 1and1 admin panel, and then set its destination to the folder where the WP install lives.

    In wordpress I created a new site and in the Network Admin menu, edited the domain to moviefest.othersite.com

    Status:
    Now in WP network admin I see the two sites listed. In the browser when I go to moviefest.othersite.com there is a basic WP blog there. It must be connecting to the maintsite.com install and recognize it is a different site since it is using a different template even. There is the Hello World post, but when I try and login is when the issues come up.

    I hope that is clearer about what I did and why. Any suggestions?
    Thanks.

  4. I created moviefest.othersite.com subdomain in 1and1 admin panel, and then set its destination to the folder where the WP install lives.

    In wordpress I created a new site and in the Network Admin menu, edited the domain to moviefest.othersite.com

    I think that's going to be the problem. Your domain map knows where WordPress, is, but WordPress doesn't. What you're trying to do would be best called domain MAPPING. And you've only done half of it, and you did it in a way that doesn't let WordPress understand where it is anymore. It's lost!

    I would do it the way I said people 'normally' do. Make the subsites as they stand ON the mainsite. Then MAP the moviefest.othersite.com site.

    Or ... y'know, install WordPress on othersite.com ;) Less work.

  5. happyclams
    Member
    Posted 2 years ago #

    While it feels a little bit like defeat, I think it is probably easiest to just install another instance of WP. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic