Title: Permalinks in subfolder multisite installation
Last modified: August 20, 2016

---

# Permalinks in subfolder multisite installation

 *  Resolved [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/)
 * Hello,
 * I installed fresh WP and create network in domain using WP tutorials (mysite.
   com). I also added another domain (example.com) using WordPress MU Domain Mapping
   but when I enter address example.com I am redirected to [http://www.mysite.com/example](http://www.mysite.com/example)
   and all post has address [http://www.mysite.com/example/2013/02/postname](http://www.mysite.com/example/2013/02/postname).
   How can I change this to [http://www.example.com/2013/02/postname?](http://www.example.com/2013/02/postname?)
 * best regards,

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497470)
 * Did you set example.com as the primary domain for [http://www.mysite.com/example](http://www.mysite.com/example)
 *  Thread Starter [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497472)
 * No. When I changed it is OK now. Thank you.
 * One more question. Can I set up more than one primary domain? If in future I 
   will add another domains would it be possible to set up proper permalinks?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497486)
 * No, you can only have one ‘primary’ domain. The rest would be secondary, and 
   redirect to the primary.
 * You really never want to have multiple domains with 100% the same content.
 *  Thread Starter [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497487)
 * I though about situation that one day I will decide to make next blog or webpage,
   about something completely different with new domain (ie.: newdomain.com) and
   than I will just make new blog inside my network (mysite.com/newdomain) and redirect
   to new domain and my permalink will be like this: newdomain.com/2014/01/postname.
   Is it possible ?
 * PS. You are right I am not gonna make 10 websites with the same content. It doesn’t
   make a sense 🙂
 *  Thread Starter [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497488)
 * I made a test. For a moment I set up my another website (mysite2.com) to folder
   where I installed WP, I made new site mysite.com/mysite2 and I mapped mysite2.
   com domain to mysite.com/mysite2 and it looks that permalinks are correct and
   both domains (mysite.com and mysite2.com) are set to be primary. Could it be 
   done like that? Or should I expect some problems in future?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497497)
 * > I will just make new blog inside my network (mysite.com/newdomain) and redirect
   > to new domain and my permalink will be like this: newdomain.com/2014/01/postname.
   > Is it possible ?
 * Yes, that’s how it’s supposed to work.
 * > it looks that permalinks are correct and both domains (mysite.com and mysite2.
   > com) are set to be primary.
 * No. You cannot have two ‘primary’
 * Go to /wp-admin/network/settings.php?page=dm_domains_admin
 * You’ll see ‘Site ID – MAPPED domain name – Primary’
 * If you have more than one domain mapped to a site ID, only ONE should be primary.
 * Also mysite.com (the MAIN domain) must NEVER be mapped. You can’t map site #1
 *  Thread Starter [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497501)
 * > If you have more than one domain mapped to a site ID, only ONE should be primary.
 * All (3) domains are set to main :/ but not this with ID 1. I don’t understand
   something and if you can be so kind and try to explain me something.
 * I have three websites build on WP (mysite.com, example.com, mysite2.com). Because
   maintain them takes me too much time I wish to have one WP installation with 
   connected domains. I read twice: [http://codex.wordpress.org/Before_You_Create_A_Network](http://codex.wordpress.org/Before_You_Create_A_Network)
   and [http://codex.wordpress.org/Create_A_Network](http://codex.wordpress.org/Create_A_Network)
   and I understood that it should be possible. I made a fresh WP install (with 
   new database) for mysite.com, I made a network (directory base because I can’t
   set up subdomain base) for mysite.com, install WordPress MU Domain Mapping and
   then I discovered problem with permalinks. So is it possible to have (and how
   to do it):
 * 1. mysite.com and permalink mysite.com/2013/02/postname
    2 example.com and permalink
   example.com/2013/02/postname 3. mysite2.com and permalink mysite2.com/2013/02/
   postname
 * Please help me,
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497507)
 * Site ID 1 is your MAIN domain.
 * You can’d do anything to it. Leave it alone.
 * > So is it possible to have (and how to do it):
   > 1. mysite.com and permalink mysite.com/2013/02/postname
   >  2 example.com and 
   > permalink example.com/2013/02/postname 3. mysite2.com and permalink mysite2.
   > com/2013/02/postname
 * Yes. You’re over thinking ALL of this.
 * 1. Install Multisite in mysite.com and use it like you would normally.
    2. Activate
   Multisite subdomains (trust me on this one) 3. Make example.mysite.com and mysite2.
   mysite.com 4. MAP THOSE TWO SITES to example.com and mysite2.com 5. Go have a
   beer.
 *  Thread Starter [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497511)
 * > 1. Install Multisite in mysite.com and use it like you would normally.
   >  2. 
   > Activate Multisite subdomains (trust me on this one) 3. Make example.mysite.
   > com and mysite2.mysite.com 4. MAP THOSE TWO SITES to example.com and mysite2.
   > com 5. Go have a beer.
 * It did as you wrote so now I have in my Sites:
    Domain – mapping mysite.com –
   blank example – example.com mysite2 – mysite2.com
 * and in Domain Mapping: Domains:
    Site ID – Domain – MAPPED domain name – Primary
   3 – mysite2 – mysite2.com – Yes 2 – example – example.com – No
 * Permalinks on mysite.com are OK, on mysite2.com they are also OK. But when I 
   input example.com than I am redirected to example.mysite.com. Which is useless
   for me. So if I can’t have more than one primary domain how can I have example.
   com not example.mysite.com with proper permalinks and using one WP installation?
 * PS. mysite.com, mysite2.com and example.com have different content. Until I installed
   WP they were different standalone websites.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497512)
 * In general, you NEVER have more than one domain for the content, it’s just a 
   bad idea.
 * > So if I can’t have more than one primary domain how can I have example.com 
   > not example.mysite.com with proper permalinks and using one WP installation?
 * Don’t map the domain, mirror it and only use relative links in everything you
   do.
 * I will point out the ORIGINAL question was just about domain mapping. Why do 
   you think you need to have two domains with 100% the same content?
 *  Thread Starter [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497513)
 * I think I expressed poorly and you didn’t understand me well. I hope this time
   I will be better.
 * 1. I know and I never wanted to have two (or more) sites with the same content.
   It is stupid and I promise to don’t do this. Never 🙂
 * 2. What I want to do is to have ONE installation of WordPress with three sites
   inside. Let we say that mysite.com is about flowers, mysite2.com is about cars,
   and example.com is about planes.
 * 3. As I understood multisite is right for me. I already did what you wrote (and
   this is similar to my original state) but the problem is in permalinks. Because
   for non primary site (here about planes) I receive permalinks like: planes.flowers.
   com/2013/airbus330 instead of planes.com/2013/airbus330. How to change it ?
 * PS. Sorry for my english but is not my mother language.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497514)
 * >  Because for non primary site (here about planes) I receive permalinks like:
   > planes.flowers.com/2013/airbus330 instead of planes.com/2013/airbus330. How
   > to change it ?
 * You make the mapped domain Primary. That’s all 🙂 You did it totally right on
   the other sites!
 * > and in Domain Mapping: Domains:
   >  Site ID – Domain – MAPPED domain name – Primary
   > 3 – mysite2 – mysite2.com – Yes 2 – example – example.com – No
 * See how the last one you say ‘Primary NO’
 * Change that.
 *  Thread Starter [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497515)
 * > See how the last one you say ‘Primary NO’
 * but you wrote:
 * > No. You cannot have two ‘primary’
 * ?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 5 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497516)
 * > 2 – example – example.com – No
 * Right, if you want example.com to be the primary, make it primary.
 * Every site ID gets one primary domain. Pick one. Go with it 🙂
 * You only listed ONE domain for Site 2. If there are more, you’re not telling 
   me…
 *  Thread Starter [da1k](https://wordpress.org/support/users/da1k/)
 * (@da1k)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497530)
 * OK. It is works. Thank you.

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

The topic ‘Permalinks in subfolder multisite installation’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 15 replies
 * 2 participants
 * Last reply from: [da1k](https://wordpress.org/support/users/da1k/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/permalinks-in-subfolder-multisite-installation/#post-3497530)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
