Moving a site from sub domain to main website domain


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

I want to get rid of au.

Can this be achieved through a plugin.

Thanks in Advance.


  • 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 (, 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.


    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 "" to "" 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!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.