WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite - Domain mapping || Second domain gets redirected to first domain (10 posts)

  1. luftikus143
    Member
    Posted 1 year ago #

    ok, after many, many hours of trying around and reading tutorials, i slowly start to understand. But not yet completely.

    I have successfully managed to turn my existing (german) wordpress installation (site1.de) into a multisite. I want to create a second blog (english), which would run through site2.de.

    So, german blog under site1.de.

    I've added a new wordpress site ("test") which corresponds to site1.de/test. It works.

    In the "Network admin", the "Domain mapping" points to "site1.de" (I don't have an IP).

    In the "test" admin area, I click on "Domain mapping", "add new domain" and enter site2.de, as primary domain.

    Now, there is something I have to do on the webhosting administration side. I can change the domain attribution, so that site2.de gets redirected to site1.de.

    But when I do this, my site2.de get's indeed redirected to site1.de, but not site1.de/test. And site1.de/test gets redirected to site1.de.

    What am I doing wrong? Thanks so much for any hints!

  2. Maruti Mohanty
    Member
    Posted 1 year ago #

    Hi luftikus143

    Please go through the post below.
    http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/
    and check if you are doing everything right.

  3. luftikus143
    Member
    Posted 1 year ago #

    Hi Maruti. Thanks, and yes, it was one of those pages which I consulted before, even a couple of times.

    Meanwhile, at least the redirection from site2.de to site1.de/test works. Must have been a DNS issue.

    However, the "domain mapping" doesn't work. When I enter "site2.de" into the "Add new domain", and I enter then the site2.de into my browser, I can see that it redirects (as before) to site1.de/test, tries to load it, but doesn't succeed ("Failed to open page").

    Any idea?

  4. Maruti Mohanty
    Member
    Posted 1 year ago #

    Hi ,

    In the domain mapping page you need to check if you have entered the right IP address and then in the domain options check 2nd n 3rd option.

    You dont need to change anything here anymore when you add sites.
    To add sites go the admin network and add sites.

    For example if ur parent site is http://www.example.com and the new site you want to add is site1 then in the "Add new site" in the site address field just add site1 and other details.
    then the url would be site1.example.com or example.com/site1 depending upon the installation.

    Now if you want to do the domain mapping, go to settings->domains
    In the new domain field add the site id(site1 id, you can get this by hovering over the site in all sites)
    then give the domain name of ur choice lets say "site1.com" and then check the primay and save

    Hope this helps

  5. luftikus143
    Member
    Posted 1 year ago #

    As far as I can judge, I've done it the same way you describe. However, and here I come back to the first post, the browser is saying "Too many redirects occurred trying to open "http://site2.de".

    As I don't have the IP address, I enter the URL instead in the Domain Mapping: "site1.de".

    It doesn't make a difference if it's "www.site1.de" or "site1.de", right?

  6. Maruti Mohanty
    Member
    Posted 1 year ago #

    yes but in the domain mapping you need to provide the ip of the server you have hosted your site in.

    If you dont have it please contact your host provider and get it.

    It would remain same for any number of sites you add. It just points to the server.

  7. luftikus143
    Member
    Posted 1 year ago #

    But it says on the domain mapping page that one can enter either the IP or the CNAME. In my case, the host provider said that the IP links to a virtual server with many domains. So, I can't use the IP.

  8. Maruti Mohanty
    Member
    Posted 1 year ago #

    fine then use the CNAME but the CNAME should point to ur server.

  9. luftikus143
    Member
    Posted 1 year ago #

    Yup, as I wrote above,

    "In the "Network admin", the "Domain mapping" points to "site1.de" (I don't have an IP)."

    That should do it, no?

  10. luftikus143
    Member
    Posted 1 year ago #

    Resolved. I had to point the second domain in the host provider's admin part to the PATH /www/site1, not to the URL.

Topic Closed

This topic has been closed to new replies.

About this Topic