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
sedcommand 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
- Is there a is_user_logged_in() for multisite?
- Switching MultiSite installation from HTTP to HTTPS
- Automatic Upgrade Filters in Multisite
- Using WP Multisite for multi language site? A good option?
- How to synchronize user profile fields in multisite?
- wp-cli is not working properly. No response from commands
- Unable to login to new custom domain on multisite?
- Generate WP-CLI @alias for each site on multisite
- Shared Content but “Updatable” Through the Main Site
- How to Set up a Multisite WordPress?
- How to customize the wp-signup.php for a multisite network?
- How to Limit Bandwidth for Multisite?
- ID’s being stripped out of editor for Admin user in Multi-Site
- Change management solution for BP-based site?
- How to Structure WordPress for an Organization and its Departments?
- (How) Can I change my Multisite Network to use a different blog as Primary?
- Multisite non www domain gives registration error but should redirect to www.domain.com
- get_current_site() not returning site name
- Add custom user fields in Multisite USERS page
- WordPress multisite with multiple parent domains
- WP 4.4 – domain mapping for sites within a multisite network?
- How to disable the default WordPress redirect to non-www URLs?
- Bulk theme settings in wordpress multisite
- Multisite favicon.ico
- Should I use a multisite installation to achieve a multi-language site?
- Switch a single site to a multi-site
- Why can’t I login to my “network sites”?
- migrate a MU sub blog to a single install
- Preferred method of setting user role only works on Main Site in Network
- Register submenu on network menu from the subsite
- How can i define the order of blogs in a multisite network manually (like pages)?
- new multisite, old db
- Multisite sub-directories IIS 7.5 change media/uploads location
- multisite (MU) Subdomain- only one wordpress install
- Domain mapping with Multisite links are wrong
- Install multisite wordpress on a subdomain and map to top level domains
- Get latest blog post from another multisite blog
- How to remove and disable access to General Settings Page including its link
- Is it necessary to network enable both the parent and child theme for multisite installations?
- How to make multi site with single Database?
- Multi site installation with multiple domains ie(www.exampleone.com, www.exampletwo.com)
- Change Woocommerce languange on a multisite install
- Automatically Insert Into Post when uploading Media
- importing data into wordpress db
- Should I use multisite?
- WPMU function get_blog_details, last_updated/registered and formatting time and date string
- Prevent duplicate pages from being added
- Multi Site Language switcher
- How to use the same “wp_posts” table for different subdirectories in the same DB?
- What is the proper way to merge 2 WordPress blog instances
- In Multisite – main site blog post should be display in minisite or subsite
- Multisite WordPress doesn’t work properly on virual hosts
- Register a user only to the root blog – WP Multisite
- Search returns “Nothing Found” on a sub directory
- Define default settings for new sites on multisite network with mu-plugin
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- Multisite + wp_mail – Route Via Site Conditionally
- WordPress automatic Login on other page?
- Multisite: How to bypass wpmu_signup_user_notification and add my own notification logic?
- MU domain mapping without using a plugin
- Multisite authorization error 401
- Multisite Demo Data for New Site
- Responsive Wordress Site – Serve different post types to each device
- is there a if multisite have posts function?
- Multisite – mix sites that use subdomains with sites that use paths
- How to apply specific plugins to affect all sites (Multisite Network)
- Is there a way to have wordpress 301 versus 302 urls by default?
- first load of the page gives 404 error
- Some Subdomains on a Multisite Install Not Found
- WordPress Multisite restict user access
- get_category_link() or get_tag_link() return wrong category/tag base in wordpress multisite
- Multisite subdomain microsite on secondary domain
- Unable to change blog language in multisite
- WordPress Multisite Domain Mapping Issue: Subsite Domain Redirecting to Primary Domain
- Multisite logged into one wp-admin, move to another sites wp-admin asked to login again
- How to import product from English version to local language
- UPLOADS constant not working in WordPress Multisite
- Uncaught Error: Interface ‘…’ not found for direct acces to wp-includes files