• Hi I need some help please. I am fairly new to wordpress.

    Have a site on a subdomain and have just bought a domain. Since I can not have a blog on the subdomain I need to move to the domain. I currently have my new domain pointing to the subdomain but I have a number of things that point to the subdomain. For this reason I would like to copy from the subdomain to the domain but keep both running or can i point the sub domain to the domain once it is set up so that any links go to my site.

    Hope this makes sense!!!! would appreciate some help to do this. I am not overly technical so please explain step by step.

    Thanks in advance.

    ?? Odette

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Odette,

    Are the new domain and subdomain in the same cPanel account? This is what I would suggest:

    1. Remove the redirect from your new domain to the subdomain.
    2. Copy the files for your WordPress site from the subdomain folder to the new domain folder. If you are in the same cPanel account, you won’t have to do anything special for the database.
    3. Change the Site URL https://codex.www.ads-software.com/Changing_The_Site_URL
    4. You can redirect the subdomain to the new domain.

    Please reply if something is unclear or I’ve misunderstood. I hope this helps!

    Thread Starter londongong

    (@londongong)

    Hi Eva

    Yes they are in the same cpanel.

    I have removed the redirect so for now it goes nowhere!!!

    In the process of copyoing the files over

    I have got some plugins and stuff intalled on the site. hope that does not need any extra work

    Step 3, is very scary looking!!! Not exactly sure what I should do there! If you can help a little more on that , would be appreciated.

    Thanks ??

    Thread Starter londongong

    (@londongong)

    I can now see there are various methods, which should i use ?

    Thread Starter londongong

    (@londongong)

    any advantage or disadvantages ?

    Hi,

    Some of the methods require some extra work, like the wp-cli tools. You need to be able to ssh into your account. And I probably wouldn’t recommend you edit the database directly, as a newbie. The easiest method is editing the wp-config.php file by adding these lines (replacing example.com with your new domain):

    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’);

    This should fix things well enough to login to your site (some links might be broken). From there you can install a plugin like Velvet Blues to fix any remaining issues with links to the old url https://www.ads-software.com/plugins/velvet-blues-update-urls/

    You might also be able to reach out to your webhost for help. They might help you, or even make the change for you.

    You’re welcome and I hope this helps. ??

    Thread Starter londongong

    (@londongong)

    Thanks, I think I cracked it.

    exported the database, imported it in and ameded blah di blah and amended it, also changed the wpconfig thingy https://laughteryogawellness.co.uk/ now all is well. Thanks though you got me on the right track!! As far as i can tell the links are working!

    Thanks for your help

    Thread Starter londongong

    (@londongong)

    Now I can stop crying and laugh as my website suggests! Ha Ha ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Copy from subdomain to domain’ is closed to new replies.