If you have access to a Linux/Mac/Unix command line with bash, you can do the following:
- Export your database to an SQL file.
- Use
sed
command with -E to run regex search and replace operations on URLs that do not containwp-content/uploads
(or
whichever folder contains your media)- Import your SQL file to the new server.
The one “gotcha” would be the regular expression required to exclude your media folder.
If you do NOT have access to bash, or do not have strong regex experience, you might review the WPBeginner article How to clone a WordPress Site in 7 Easy Steps. A friend of mine has used their method several times.
Related Posts:
- WordPress Multisite: How to make all media library items available for every site?
- How to upload images manually to wordpress?
- Multisite: use media from one site vs. copying the same media to all language sites?
- Copy site from one multisite to another
- Clone a wordpress website with same functionality, but different content
- Getting blank thumbnails in media library?
- Media library not loading after switching the main site of multisite
- “Organize my uploads into month- and year-based folder” Option Not Visible in Multisite
- Multisite: copy template when a subsite is created
- Upload file type not permitted even if explicitly registered as upload_filetypes in the db (multisite)
- WP doesn’t remove uploads from folder when removed from “Media Library”?
- Multisite – Images often getting uploaded to the wrong month directory
- Merge Multisites with Shared Network Media Library
- Multisite: cloning, but also updating too
- Clone single site into a multisite setup
- My Media Library is broken across all my subsites
- Migrating MultiSite to SSL: Media Library not updating
- Conditional Image Sizes for Use via Theme Customizer Upload Only
- How to clone homepage for multi region site?
- Launch Media Library for specific MU site
- Media library links broken WordPress Multisite after SSL update
- WordPress Multisite Medial Library not working for .online domain
- How do I remove/delete an old super admin user?
- Setting up a wordpress network with third level domains
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- What methods should be used to fend off splogs in a multiuser install? [closed]
- WordPress 3 Multisite using subdomains.- DNS on Cpanel question
- Remove Site Name from register form – Multisite
- Set up collaborative site
- How to disable Multisite sign-up page?
- Add role across network in multisite
- NGINX Multisite Rewrite rules
- On Multisite: Loop to Show First Four Images of Recent Posts Across Network
- “Preview Changes” button doesn’t show changes for previously published posts/pages
- Tax_query not working on multisite
- Can I manage more wordpress sites with one wordpress administrator page? [closed]
- Add menu page on multisite
- Identical members roles on all sites in a multisite
- Fixing media links after importing to multisite
- WP-CLI can’t list posts
- Woocommerce and different checkout field for different countries
- Why is multisite rest API keep giving me results for root site only?
- How to stay logged in on a multisite with different domains?
- wordpress multisite subsite rewrite rules not working for videos
- What should I do? A multisite, a single website or many websites? [closed]
- Can a user spread virus on my Multisite?
- Use another author.php if different multisite subsite?
- Subsite with different template, and content
- What is best forum script available to integrate with wordpress?
- The wp_blogmeta table is not installed. Please run the network database upgrade
- Link to Network Admin Broken After Switching to HTTPS
- Making 2 WordPress sites mutually searchable and more
- Multi-site get_bloginfo(‘stylesheet_directory’) referring to sub-folder
- Unable to apply theme to WordPress Network Site install
- How to convert multi-site to single site
- Create a homepage like WordPress.com?
- Use WordPress MultiSite (WPMS) with a remote database for each created site
- get post id by $content (so by post content)
- Redirect old uploads after moving to multisite
- URL for images folder on Multisite
- Admin permission for creating blogs in multisite
- Will WP work on a multi-server environment? [duplicate]
- 3 blogs on one site with the same header menu?
- Amazon EC2 and static page Caching (Multisite): How to enable Caching with multiple instances?
- How to check if page exists in Multisite?
- WordPress MU wp_posts table
- WordPress Multisite (sub-directory based), change subsite URL
- 403 forbidden when changing settings on WP Multisite non-main sites
- Migrating wordpress sites through localhost and ubuntu
- WordPress multisite with only two level of sub-domains?
- WordPress multisite with separate domains
- Multisite are not creating folders for the subsites
- After setting up multisite on localhost, requests to localhost redirect to production domain
- How to use same theme in different languages?
- Blog & Portfolio setup
- How can I restrict changing the max nested comment levels option to super admins?
- How can I create network with different domains?
- Problem moving wordpress multisite
- Can I run both a wordpress blog plus another service(ex. a Shopify store) on the same domain?
- I want to replicate my sub site similar to my primary site in WordPress Multisite Network
- Getting file errors in a WordPress Multisite ADMIN
- WordPress multisite redirect one custom non www domain to www
- Multisite issue
- Max number of sub folders
- Can’t access 2nd site (sub) dashboard of WordPress Multisite
- wordpress multisite config issue needs help
- Multisite read_more link displays URL twice
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- Multisite: Run a subdomain install from a directory install
- Network – My sites are unavailable
- Plugin data shared in Multisite
- Remove blog slug from WPMU?
- WordPress multisite and one database
- Planning on Multisite Before Creating A Network
- Can admins on network install view and edit users accounts?
- Unsure of my options, Multi-blog?
- WordPress Multisite with HTML template as Root
- Trying to create site-wide Active Directory sync with Multisite
- WordPress MU: Cookie error when trying to login on network WP instance