domain mapping DNS with CloudFlare

I'm struggling getting my DNS to work with cloudFlare and MS and Domain mapping. Can you please help? I've tried pointing the new domain with an "a" record and a "cname" record. I've turned off the pass trough via CF cloud etc and nothing seems to be working. Can you take a look?

  • Adam Czajczyk
    • Support Gorilla

    Hello John,

    I hope you're well today and thank you for your question!

    In order to make CloudFlare work with your site you need to point your domain to it. Therefore if the mapped domain should go through CloudFlare as well it should also point to CloudFlare instead of an IP of your server. Then, in CloudFlare account dashboard you could set it to point to your site.

    To sum it up:

    1. Make sure that your main site is running fine with CloudFlare
    2. Point your "domain to be mapped" to CloudFlare and add it to CloudFlare account
    3. Make sure that on your server a root folder of your IP is set to the root folder of your main domain (so typing IP in browser address bar would load the main site of your Multisite)
    4. Set DNS A record for "domain to be mapped" in CloudFlare dashboard to point to your main domain IP (the IP assigned to your server - not CloudFlare for main domain!); this is described here:

    I hope that helps!
    Best regards,

  • john_kesler
    • Design Lord, Child of Thor

    OK but I think I must have missed a step. goes to which is my multisite domain. Can you help figure out why?


    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]

  • Adam Czajczyk
    • Support Gorilla

    Hello John!

    I visited both domains and they load different sites for me. While loads a WordPress site, the loads some "domain parking" site. I assume however that it's possible that DNSes used by my internet provided didn't catch the change yet.

    That said, I understand that the "" is your main multisite domain and "" is the domain that you'd like to map to the sub-site. Is that right?

    If both these domains at this moment load your main site (the site that's originally under "") domain, that would be a correct setting. You should now be able to use "Domain Mapping" plugin to map the "" domain to any sub-site of your Multisite Network.

    Best regards,

  • john_kesler
    • Design Lord, Child of Thor

    Adam ,

    Thank you for all your help. I'm still having problems getting the domain mapping to work. This usually works right out of he box for me so I'm a bit baffled. goes to but no matter how I configure domain mapping it won't map to the domain. It just goes directly to . I've been beating my head against the wall bc I'm sure it's something really really easy I've missed.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.