WordPress.org

Forums

Addon Domains, subDomain vs. subDirectory (2 posts)

  1. savvydan
    Member
    Posted 2 years ago #

    I've read a number of post regarding this issue and none of them have helped me. Please bear with me as I take the time to fully describe my situation. I'm a newbie to WordPress and Multisite in particular, as will become obvious by my questions below.

    My primary site is hosted with Justhost.com. They allow customers "unlimited domains" by giving them "addon domains". This works like this: In cPanel I click on "Assign a domain to your account", if it's a domain not already associated with my account, I can choose "addon" "parked" or "unassigned". The addon is defined: "An Addon Domain is a domain name that points to a different subdirectory on your account. This gives you the ability to make it look like an entirely different website." It gets created in it's own directory in public_html/. I have two addon domains that are named by the host as: domainOne.primary.com, and domainTwo.primary.com. I can type domainOne.com into the URL line and it shows up as a top level domain.

    In my public_html/ WordPress Multisite is installed in the primary domain root. So in public_html/ there is no folder labeled primary, but there are folders labeled domainOne and domainTwo. These are very small sites with only two users and a couple of posts and pages. The primary site itself is just a default twentyeleven.

    I've read through and followed the WP Codex on "Migrating Multiple Blogs to Multisite," and "Create A Network," but I've gone through two re-installs of Multisite on my primary and I'd really like to set this up right. Don't even ask what went wrong, it would take too long to explain here.

    It's my understanding that if I choose the subDomain vs. the subDirectory option in the network setup then my imported domainOne will be named domainOne.primary.com -- but it is ALREADY named this. So, with the wildcard I created *.primary.com -- my site names for imported sites will become domainOne.domainONe.primary.com?

    Can I set up multisite with the way my host is naming my addon domains as subdomains of my primary using the subDomain network setup option, or do I need to use the subDirectory option? If I use the subDirectory option then my imported multisite domains will look like primary.com/domainOne.primary?

    Either way, is it possible? Or does multisite only work with individually hosted top level domain names?

    I understand there is a Domain Mapping pluggin. Is this required for functionality or is it just to make the URL on the business cards look like domainONe.com, instead of domainOne.domainOne.primary.com? I'm more concerned about function than how it looks in the URL at this point.

    I haven't tried to use the Domain Mapping pluggin yet, but my understanding is that I would park domainOne (domainOne.primary.com) and point it to primary and WordPress multisite will recognize this and display the URL as domainOne. Is this correct? And I do this AFTER the site domainOne has been imported into Multisite with all it's pluggins, themes, and content too. Correct? Or do I map the domain BEFORE I import it into Multisite?

    Obviously, I have more questions, but I think this is enough for one thread. Thank you for taking the time to read through this and offer the details that the Codex seems to have skimmed over.

    WordPress blows my mind. I started developing 12 years ago and gave up because the backend database management was so complicated. WordPress is so incredibly simple, intuitive, integrated, and extensible! My passion for web design has been rekindled and I'm looking forward to setting up my Multisite so I can build a ton of sites and make my client's dreams come true.

  2. The addon is defined: "An Addon Domain is a domain name that points to a different subdirectory on your account. This gives you the ability to make it look like an entirely different website." It gets created in it's own directory in public_html/.

    One important thing here.

    You won't be able to use these add-ons unless you can put it in public_html itself -- not /public_html/addon.com, but the one folder up.

    If you can do that, then the rest of this will work.

    You're over thinking the rest of it :)

    1) All subsites, be they subdomain, subfolder, or even mapped domains, are virtual. There are no folders that actually exist, and if there are, they will cause massive conflicts.

    2) If you want to end up with mapped domains, then it doesn't matter if you pick subdomains or subfolders, so just find the easiest one to use :)

    3) When you map the domain, like I said, you have to park it exactly where you installed WP. So if WP is in /public_html/, then that domain has to be parked on /public_html/ or it won't work.

Topic Closed

This topic has been closed to new replies.

About this Topic