Multi-domain / domain-mapping URL issue

I have two separate WP sites set up using the multi-domain & domain mapping plugins.

I may have either plugin configured incorrectly because the main site operates without the "www" portion of the URL. (Adding "www" to it causes it to redirect to the non-www version, which is fine I guess.)

However, the second website only works by using the www portion. When I use the URL without it I get redirected to the main website's Network Registration page (when not logged in), or the main website's home page (when logged in as Administrator.)

  • Tom Eagles

    @nolan.interactive are you using sub folders or subdomains ?

    if using subdomains make sure that you have a wildcard redirection running on your host this should help. on my server admin panel i can set it so that it will accept both forms http://www.yourdomainname.com http://yourdomainname.com

    and also http://www.subdomain.yourdomainname.com or http://subdomain.yourdomainname.com

    you probably have it set so that a page not found redirects you to the home page and this is whats happening it cant find the subsite and runs back to the main site when not found.

    hope this helps.

  • aecnu

    Greetings nolan.interactive,

    Thank you for bringing this significant issue to our attention.

    I may have either plugin configured incorrectly because the main site operates without the "www" portion of the URL. (Adding "www" to it causes it to redirect to the non-www version, which is fine I guess.)

    This one is correct allowing the sub domain to be reserved for sub domain sites.

    However, the second website only works by using the www portion. When I use the URL without it I get redirected to the main website's Network Registration page (when not logged in), or the main website's home page (when logged in as Administrator.)

    I believe the issue here is that the network was setup including the www in the domain name which is incorrect. Reference: http://codex.wordpress.org/Before_You_Create_A_Network

    1st graphic shows the correct TLD placement.

    To fix this without a reinstall, you need to go through the wp-config.php removing every instance of www. and also removing every instance of www. within the database.

    Of course a complete reinstall without the www in the domain name will have the same effect.

    Please advise.

    Cheers, Joe

  • Patrick

    Hi @nolan.interactive,

    Just checking if this issue was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?

    If so, no need to reply, that’s great news.

    If not, or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the ‘Mark as Not Resolved (re-open)’ box below the post area (or else we’ll miss it!)

    Otherwise, happy days, glad you got it sorted :slight_smile:

    Thank you for being a WPMU Dev member!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.