Moving WordPress site to a subdomain

Asked by:
Brusca / 5 Points
Time:
2012-03-18 1:22 am EST
Category:
Wordpress
Hits:
492
Hi,
I want to transfer my website and files to a sub domain. Is there a simple way to do this?

If I move all the files (wordpress) to the sub domain folder in public_html will the database be able to connect. Meaning all I have to do is change the wp-config setting for the website home?

Thanks in advance

Regards Bruce

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by Web Hosting Hub staff

0

ChristiNi
Staff
13,688 Points
2012-03-19 8:39 am EST
Hello Bruce,

Thank you for your question about moving your WordPress site to a subdomain. Once you have moved all of your WordPress files into the subdomain folder, you will need to update the wp-config.php file two tell WordPress where the new location of the website is. The lines will look similar to:

define('WP_HOME','http://example.com/newlocation');
define('WP_SITEURL','http://example.com/newlocation');

For step-by-step instructions (including editing the wp-config.php file) please see our article Moving WordPress to a different folder.

Please let us know if you have any additional questions or need further assistance.

Regards,

Christi N.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.