WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
[resolved] all working using hosts but disaster switching to a + cname (6 posts)

  1. ojmc
    Member
    Posted 2 years ago #

    Hi all

    Set up a domain based multisite for a 3 language website.

    Mapping and everything working perfect when using my hosts file.

    Problem now is that it all seems to be broken when I have tried to go live but when I switch back to hosts and all works fine again.

    By broken I mean

    It's 5 in the morning now and I am flipping out.

    I have a primary domain with 2 subdomains for 2 additional languages.

    sample-domain.it - italian (primary)
    en.sample-domain.it - english
    de.sample-domain.it - german

    Also sample-domain.it has-
    an A record pointed to my ip address
    2 A records using en and de to cover the subdomains (I tried using the * but sending me to www where I cannot access dashboards at all)

    These two sites are mapped to the english and german subdomains

    english-site.com
    german-site.it

    For these domains I added A records pointing to the main IP (am I supposed to use cnames here? if so what is he prefix to use)

    The result is main site working and everything else nothing.

    I have no idea what the problem is and am flipping out a little.

    ----------------------------------------------------------------------------

    Then i also have a feeling that it might be something to do with the virtual host setup or something server side.

    Really desperate to get running.

    Any advice would be very very very much appriciated.

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  2. ojmc
    Member
    Posted 2 years ago #

    Ok, so ow the only thing I have access to is the dashboards(not sites) on the 2 subdomains

    The main domain is gone completely.

    Unrefined stress.

  3. ojmc
    Member
    Posted 2 years ago #

    This is driving me nuts. And everyone can see a broken site up right now.

    Anyone any idea why everything works while connecting using the hosts file on my pc and not when I add entries at the domain registar.

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

  5. ojmc
    Member
    Posted 2 years ago #

    Thanks for answering.

    Tried the redirect option in the post you recommended but didn't work.

    But after I deleted those redirects and entered the A record again, like magic the sites instantly came on.

    So probably was some propagating thing.

    I was patient though, this is was almost a week from my try and I only started becoming very worried after a few days waiting.

    Anyway, the sites came on but were not resolving using www.

    And www for main site was going directing to server root.

    I found this

    rewritecond %{http_host} ^www\.yourdomainhere\.com [nc]
    rewriterule ^(.*)$ http://yourdomainhere.com/$1 [r=301,nc]

    here http://wordpress.org/support/topic/htaccess-to-send-www-to-non-www-not-working?replies=3

    which fixed the www on the main site but www still not working on mapped subdomains.

    I did make some dns changes on these 2 mapped subdomains a couple of days back so maybe they will come on soon.

    By looking at the htaccess above can you see any reason why the mapped subdomains might not be working?

  6. ojmc
    Member
    Posted 2 years ago #

    all ok now

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic