Moving a site from sub domain to main website domain

hi,

Could you please suggest an easy way to move a website build on a subdomain to its original domain.

for your ref here's the URL http://au.bestbm.com.au/

I want to get rid of au.

Can this be achieved through a plugin.

Thanks in Advance.

Munir

  • Rupok

    Hi Munir

    I hope you had a wonderful day.

    Moving a site from subdomain to main domain is not tought, but the process depends on your site structure.

    If you are having a standalone WordPress site installed here (http://au.bestbm.com.au/), then copy all your files to the directory assigned for the main domain. Then open wp-config.php file and add the following lines inside it and save.

    define('WP_HOME','http://bestbm.com.au');
    define('WP_SITEURL','http://bestbm.com.au');

    Now you can access your site in the main domain. After you login to your Dashboard after accessing it from the new domain, please go do "Dashboard > Settings > General" and change "WordPress Address (URL)" and "Site Address (URL)" from "http://au.bestbm.com.au/" to "http://www.bestbm.com.au/" and you are done.

    If you have a subsite in a WordPress multisite network and move that subsite to the main domain, the process is very complex. Please let us know which site architecture you have. If you have single site, the above solution will solve the problem.

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.