• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / How to manually export the website to localhost?

How to manually export the website to localhost?

  • Unknown's avatar
    aksobekso99 · Member · Mar 2, 2025 at 12:35 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    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.

    1. 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?
    2. 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

  • Unknown's avatar
    pauljacobson · Staff · Mar 2, 2025 at 2:43 pm
    • Copy link Copy link

    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:

    • Studio – WordPress.com Developer Resources
    • Studio Sync – WordPress.com Developer Resources
  • Unknown's avatar
    aksobekso99 · Member · Mar 2, 2025 at 3:26 pm
    • Copy link Copy link

    @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?)

  • Unknown's avatar
    pauljacobson · Staff · Mar 3, 2025 at 8:27 am
    • Copy link Copy link

    @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.

Tags

  • account
  • design
  • Domain
  • import

About this topic

  • In: Support
  • 2 participants
  • 3 replies
  • Last activity 10 months
  • Latest reply from aksobekso99

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions