How to manually export the website to localhost?
-
I want to export my website to localhost manually using XAMPP. I have found guides that go through this process, step by step, but I’ve been having some difficulties with them, and it seems that they don’t directly apply to websites hosted on WordPress.com (see the end for the sources and guides I’ve consulted).
Has anyone had experience in migrating their website to localhost manually? Help would be much appreciated (and if possible, an explanation of how you achieved this).
So far, I’ve managed to transfer my server files from /home/[my_username]/htdocs to my local pc; export my databases via phpMyAdmin and import them to my local DB. The next step is to link the database and the website, and from what I’ve gathered, this is done by configuring the wp-config.php. This I haven’t managed to do. Please see below the two related questions.
- What files do I need to transfer/copy to my local PC? I read something along the lines of copying everything in the htdocs folder to local. However, there’s two htdocs folders, one at “/home/[my_username]/htdocs”, the other at “/htdocs”. Which one do I need to copy to my local pc?
- All guides instruct to edit the database related entries in wp-config.php to the corresponding local settings. E.g., DB-USER, DB-PASSWORD, etc. but the wp-config.php doesn’t have these commands and instead says: ” Database connection information is automatically provided. There is no need to setor change … configuration values: DB_HOST, …. “. Is the setup to migrate WordPress.com hosted website different to others, and which file(s) do I need to edit?
The sources that I’ve consulted: how-to-move-a-live-wordpress-site-to-localhost-xampp; move-wordpress-xamp How to migrate a wordpress site manually from online host to local host
-
Hello @aksobekso99
I have an alternative option for you. If you install our Studio application, you can sync a WordPress.com site on a WordPress.com Business plan to a local site through the Studio app.
This will give you a local development environment and the option to sync back to the WordPress.com site. Here is more information about this:
-
@pauljacobson Thanks for helping Paul! I will consider this but for now, I’d like to make things work on my preferred IDE, Visual Studio Code. Do you know if this procedure is possible at all (exporting from WordPress.com hosted websites?)
-
@aksobekso99 Depending on the WordPress.com site that you want to export, you can export the content to use locally. If your site is on a WordPress.com Business plan or WordPress.com Commerce plan and has plugins enabled, you can download a site backup through Jetpack Backups (take a look here).
Just returning to our Studio app, you can access the synced site in VS Code. This is an option available in the app:

- The topic ‘How to manually export the website to localhost?’ is closed to new replies.