• We currently have a WordPress site hosted by HostGator at https://www.bridgebuddy.net. We want to change our domain to point to a new storefront on Volusion and make our WordPress blog site be a subdomain club.bridgebuddy.net. I’ve tried to research here about how to switch our site from a domain to a subdomain, but mostly what I could find talked about actually physically moving the files. Can’t we just create a CNAME record for the subdomain and point it to the existing folder that contains the WordPress site, after we repoint the domain to the Volusion site, and then edit the hard-coded references to the old domain in the config/settings files and the database? Would we then be able to login to club.bridgebuddy.net/wp-admin instead of https://www.bridgebuddy.net/wp-admin?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Here is information for creating a sub-domain on HostGator: https://support.hostgator.com/articles/cpanel/please-read-before-creating-a-subdomain; however, this may be different if you have a DV and are using Plesk instead of cPanel.

    I would go that route inside of creating a folder and cname entry yourself — that’s essentially what cPanel will do, in addition to providing a GUI and settings for your subdomain. Once the sub-domain is setup, see the WordPress codex article about moving a WordPress site: https://codex.www.ads-software.com/Moving_WordPress

    Thread Starter karenckeller

    (@karenckeller)

    Thanks, HostGator does have cPanel….is there any way to do this without creating a subfolder at all? Right now the domain points to the WordPress site folders. Can’t I just make the subdomain point there instead since the domain will now be pointing to a different server altogether?

    We want to change our domain to point to a new storefront on Volusion and make our WordPress blog site be a subdomain club.bridgebuddy.net.

    Go to cPanel and re-point (re-assign) your domain to wherever you wish, then add the sub-domain as a nested folder…but then you will also have to update that sub-domain’s database to the new https://www.domain.com/subdomain/ URL. cPanel might show that sub-domain as being in front of the domain (if it even shows there at all), but that is not how it will be as you actually access it.

    iShouvik

    (@shouvikmukherjee)

    Hey karenckeller,
    It is possible to change the url of your wordpress site. But sometimes things go a bit weird due to many reasons — caching, dns, etc.

    You can:

    • Change the url of your site from wp-admin page. You might experience some issues after this. Don’t panic.
    • Either copy your all your wp files to the root of the new domain name or point the new domain name to the directory where wp resides at the moment.
    • See if you can login and move to the next step. If you can’t, then revert back to your previous url by modifying the table wp_options from PhpMyAdmin.
    • Change all urls on your database. You can either achieve this by running a MySQL query of your own or use a plugin like ‘Search & Replace’ and change all matching results of ‘sub.example.com’ to ‘example.com’.

    I hope that helps.

    ~ Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing from a Domain to a SubDomain’ is closed to new replies.