• ristretto6

    (@ristretto6)


    I am looking to create a subdomain (handmadegiftshow.urbancraftuprising.com) on our main domain (urbancraftuprising.com). I’ve never done this before and just want to be sure I’m approaching it correctly.

    I’ve created that subdomain on our server via our web host. Now would I simply create a new installation of WordPress on that subdomain (the main urbancraftuprising.com domain is already running WordPress) as if it were a brand new domain, or is there a way to somehow link the current WordPress installation to this new subdomain? I’d like to be running the same theme as on urbancraftuprising.com, if that makes any difference.

    Thanks!

    • This topic was modified 5 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There are a number of approaches. Any of them could be considered “correct”. You could use a multisite installation, but for 2 or 3 sub-sites I wouldn’t bother. Multisite has some drawbacks which many would rather avoid. However, if you need a good number of sub-sites, multisite is a good solution.

    For a two site setup using the same theme, you could add logic to your main site to deliver one site’s content or the other from one WP installation, depending upon the requested sub-domain. However, it’s easier and more straight forward to simply utilize two WP installations. One in a sub-folder and one in public root. Be sure each has a unique table prefix defined in wp-config.php if you use the same database for both. In your hosting account, add the sub-domain and point its requests to the sub-folder containing the other WP installation. You essentially have two separate WP sites on one server and a single primary domain. You can use the same theme or two different ones, or the same theme with two different base colors.

    Depending on your hosting and domain registrar situation, you may need to also add the sub-domain to your domain’s DNS records as either an A, CNAME, or ALIAS record. Which is preferred varies by host. Your host may do this for you when you add a sub-domain to your account. If you are not sure, ask your host for assistance.

Viewing 1 replies (of 1 total)
  • The topic ‘Installing on a subdomain’ is closed to new replies.