Title: CNAME mapping issue
Last modified: August 21, 2016

---

# CNAME mapping issue

 *  Resolved [wonderer](https://wordpress.org/support/users/wonderer/)
 * (@wonderer)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cname-mapping-issue/)
 * Hello,
    it’s my first time with WPMU and I’m trying to figure out how to make
   everything work, but I’m stuck on domain mapping. I’ll try to explain it with
   details.
 * I’m on a shared IP server
 * I own:
    mydomain.com mydomain.de mydomain.es mydomain.fr
 * All of these domains have been bought with external domain service and have NS
   pointing to my server:
    NS1.myservedns.com NS2.myserverns.com
 * I’ve enabled WPMU with subdomains so that blogs structure looks like:
    [http://www.mydomain.com](http://www.mydomain.com)
   de.mydomain.com ID=2 es.mydomain.com ID=3 fr.mydomain.com ID=4
 * I’ve mapped domains in WP superadmin panel so that blog with ID=2:
    de.mydomain.
   com correctly forwards to [http://www.mydomain.de](http://www.mydomain.de)
 * I’ve set CNAME for mydomain.de on my server so that
    subdomain: www record type:
   CNAME value: mydomain.com (cannot edit TTL)
 * (A records of all domains are already pointing to the same IP by default)
 * The problem is that typing [http://www.mydomain.de](http://www.mydomain.de) it
   redirects to [http://www.mydomain.com](http://www.mydomain.com) (main blog with
   ID=1) and not to the correct blog with ID=2.
    Also, [http://www.mydomain.de/category/postname/](http://www.mydomain.de/category/postname/)
   leads to “not found” and not to [http://www.mydomain.com/category/postname/](http://www.mydomain.com/category/postname/).
 * What am I doing wrong?
 * Thanks in advance.
 * [http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/](http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/)

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

 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cname-mapping-issue/#post-3748784)
 * Check to see if you made the wp-config.php edits correctly. They should be before
   the that’s all, stop editing line.
 *  Thread Starter [wonderer](https://wordpress.org/support/users/wonderer/)
 * (@wonderer)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cname-mapping-issue/#post-3748852)
 * Thanks a lot for your reply.
    wp-config was correctly edited. The issue was that
   I had to point vhost of the secondary domains to main domain folder. But in this
   case it works only with A records, as with CNAME it keeps redirecting to main
   domain homepage.
 * The important thing is that now it works.
 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [13 years ago](https://wordpress.org/support/topic/cname-mapping-issue/#post-3748859)
 * If you are using CNAMEs you need to do domain aliases (or parking in cPanel) 
   for the CNAME to work.

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

The topic ‘CNAME mapping issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mu-domain-mapping.svg)
 * [WordPress MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mu-domain-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/cname-mapping-issue/#post-3748859)
 * Status: resolved