• Hi
    Is there any reason why I wouldn’t be able to have two completely separate sites, hosted in different locations, one using subdomain1.mywebsite.com and one using subdomain2.mywebsite.com? I can’t forsee any issues as it’s just setting up an A record for each but I wanted to check that there was nothing in WordPress that would link two sites to a root domain or anything like that before I try to implement it.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • iShouvik

    (@shouvikmukherjee)

    Hello,
    You are right. You need to have two A records pointing to two different locations and that those two different servers have virtual hosts setup properly to handle requests for the specific subdomain names.

    But, if you intend to change urls of these two websites i.e. if you want example.com to be example2.com or mysite.example.com then you have to perform the necessary steps for wordpress migration as well.

    You need to:
    1. Change the url on your WordPress admin panel. WordPress Admin > Settings > General
    2. Use some plugin like ‘Search & Replace’ to replace every single string on your db containing the old url to be replaced by the new url.

    There are detailed steps described on the page: https://codex.www.ads-software.com/Changing_The_Site_URL

    I hope it helps.

    ~ Cheers!

    A perfectly routine configuration. Give each subdomain its own independent directory, they can share hosting as virtualsites, separate databases too, and separate database users. There are actually ways to relax these rules of separation, but leave that till you have more experience.

    There is a technique called multisite which lets you have independent websites with shared files, but avoid this complication if you can, it makes good sense if you were to have numerous websites and wanted to centralise their operation.

    I do not know anything about “setting up an A record for each”, but I have several Add-On Domains and one sub-domain all cPanel-assigned to their respective locations, and there is nothing in WordPress that ever links any of them to my root domain or any other.

    Thread Starter theferrymaninn

    (@theferrymaninn)

    Thanks all!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Two completely different sites on different subdomains’ is closed to new replies.