• Tomi K

    (@tomik)


    I’ve got a WP running in domain.com (for hosting multisite WP) which is running fine (domain.com/blog1 working, domain.com/blog2 working etc).

    After getting the multisite to work I installed the domain mapping plugin and set a domain there for blog1.com. In Apache virtualhost I’ve set the blog1.com to point to the same directory as domain.com.

    Now, when trying to open blog1.com with browser it always redirects me to domain.com root.

    If I’ve understood correctly, the domain mapping plugin is supposed to show domain.com/blog1 contents but having the URL field in the browser to stay as blog1.com like blog1.com/about = domain.com/blog1/about, right?

    What could cause this redirect? It’s not setup in virtualhost and I haven’t modified WP’s .htaccess file.

    EDIT: I have to map blog2.com to this multisite installation too and probably many others in the future.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I installed the domain mapping plugin and set a domain there for blog1.com

    Step back 🙂 Which site did you point this domain to?

    Thread Starter Tomi K

    (@tomik)

    – On page “Domain Mapping Configuration” I set the CNAME to “domain.com”
    – On the page “Domain Mapping: Domains” I added a domain “blog1.com” pointing to blogID 2 (=domain.com/blog1) and it’s not set as primary.

    It doesn’t matter whether I put IP address or CNAME to the “Domain Mapping Configuration”. Always redirect to domain.com when I try to access blog1.com.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    and it’s not set as primary.

    Change that to make it primary first of all. That’s not THE bug, mind you.

    In Apache virtualhost I’ve set the blog1.com to point to the same directory as domain.com.

    How did you set DNS?

    Thread Starter Tomi K

    (@tomik)

    Change that to make it primary first of all. That’s not THE bug, mind you.

    Ok. Blog1 set as primary. Nothing changed.

    How did you set DNS?

    Unfortunately I have no access to DNS, but I can ask. How should it be setup?

    There are many more domains going to be pointed to domain.com WordPress Multisite -installation. Also some that don’t have their own domain (accessed by domain.com/blogNNN), do these make a difference?

    Thread Starter Tomi K

    (@tomik)

    Actually… It took some time, but now (after setting the blog1 as “primary”) I noticed domain.com wants to redirect me to http// (see the missing “:”). What could cause this? Is this a bug?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That means the DNS had not propagated yet. You need to get access to all that, because you’ll need it for debugging in some cases.

    domain.com is the main, NON mapped domain?

    Thread Starter Tomi K

    (@tomik)

    Domain.com has been pointing to this IP for months now so I can’t be a DNS propagation issue, right?

    Domain.com is the primary domain in which the WP has been installed, it’s not mapped with Domain mapping.

    WP works just fine it I access domain.com/blog1.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The DNS propagation impacts blog1.com (mapped to domain.com/blog1). NOT domain.com itself.

    For the record, changing a SUB site’s blog to use a mapped domain as primary has NO impact on the main site. that’s why I was making sure domain.com was the main site. you can’t map that, you see. You can uncheck it and see if it changes, but if it does, that means you have a bad plugin conflict.

    Thread Starter Tomi K

    (@tomik)

    Just to clarify: Both domain.com and blog1.com have been pointing to the same IP for long enough time for DNS to propagate. Domain.com for months and blog1.com for about a month.

    I’ll check the plugins. There aren’t many though, but it’s still a possibility.

    I remember having a strange redirect loop issue with the multisite plugin, can’t remember if it was this same scenario.

    The fix was simple: on the domain mapping plugin ‘Domain Options’ section I un-checked the ‘Remote Login’ checkbox and it fixed the redirect loop.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Multisite domain mapping redirect to root domain problem’ is closed to new replies.