• Resolved Daniel Möck

    (@filmguy_157)


    Hey wordpress community,

    I know there are a lot of threads about this topic, but I still can’t figure out how I can fix this problem.

    I created a subdomain multisite network, which works fine I think.
    My main domain has a * wildcard. There are now two sites in my network.

    Main domain
    domain.com
    New network site
    sub.domain.com

    Unfortunately the new site sub.domain.com won’t be mapped to domain2.com. WordPress will redirect it to:
    http://www.domain.com/wp-signup.php?new=www.domain2.com

    I entered the IP adress in the domain mapping settings, but didn’t write a CNAME. Because I read that it is not necessary and I really don’t know how this CNAME stuff works. I hope that it is not the root of the problem :X

    Does someone of you know what I could do?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey filmguy_157,

    CNAME works in the same way as a wildcard. In fact, a wildcard could be a CNAME. But if your wildcard works correctly, you indeed do not need a CNAME. If your wildcard works correctly then you should be able to reach sub.domain.com.

    I’ve no clue what could be wrong with the domain mapping though.
    Did you add an A record with the IP of the server in the DNS of domain2.com?

    This would have the following data (may be different depending of registrar):

    • Type: A
    • Name: domain2.com or @
    • Value: IPv4 of your server (received from host)
    • TTL: the same as the rest should do

    When you just changed your DNS, it can take a while tot propagate. You can check that with online tools like WhatsMyDNS.net.

    I hope this helps, GL!

    Hi filmguy_157,

    I have set up my subdomain in the sub folder at public_html on cpanel but my subdomain did not appear on the visit site, how can I edit the setting and info site on edit sites in the multisite network dashboard to get it works so i could see my site running well on subdomain,
    can you or anyone give me a support on this trouble.

    another question:
    This question maybe not related to the sub domain multisite,
    but how do you not showing your wp-content/themes name on the page source of browsing like mozill firefox, i see it at your domain.com, it just showing the last folder of your permalink,
    please advice me,

    Regards,

    Herrie Ripin

    Thread Starter Daniel Möck

    (@filmguy_157)

    Dude herrieripin, I need help here! :.

    Hey Axel,

    the domain is allready linked to the server IP. If it’s not a cname and a rec problem. Could it be a htaccess problem?

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Its not .htaccess

    the domain is allready linked to the server IP. If it’s not a cname and a rec problem. Could it be a htaccess problem?

    How?

    What happens when you go to whatsmydns.com and check the DNS for domain2.com?

    What plugin did you use within WP to map the domain?

    Thread Starter Daniel Möck

    (@filmguy_157)

    If I go to whatsmydns.com I receive my server IP.
    I guess thats what it should return.

    I’m using WordPress MU Domain Mapping.
    The subdomains work btw.

    Do you have an idea what could be the origin of my problem?

    It should return the IP indeed. Also, it probably wouldn’t return your main URL if it did not refer correctly.

    Still it’s weird that it redirects to http://www.domain.com/wp-signup.php?new=www.domain2.com. “Normally’ when the IP is correct, yet there is no subdomain for it, the domain would redirect to the main domain. I can’t think of anything that would make it ask to create a new site with the domain as subdomain… This redirect would happen when you try to visit a subdomain that doesn’t exist. F.ex. when you would go to domain2.domain.com. Then you would be redirected to http://www.domain.com/wp-signup.php?new=domain2… So, I’m not getting it either.

    Perhaps you could better ask for help in the WordPress MU Domain Mapping forum. When it’s a problem (that may be) related to a plugin, this increases you chances on finding help. You can find plugin forums on the plugin pages > support.

    Thread Starter Daniel Möck

    (@filmguy_157)

    Thanks for your answer!

    But … I don’t know how I did this – The Multisite installation and the domain mapping works now.

    I’ll never touch the configs again and I hope it will run forever 😉

    Great! WordPress works in mysterious ways 🙂
    GL with it!
    Could you mark this topic as resolved?

    Thread Starter Daniel Möck

    (@filmguy_157)

    haha, thanks 😉

    Sure!

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

The topic ‘Multisite Subdomain map to new domain’ is closed to new replies.