Put old host in read-only mode
- Go to WP Admin -> Settings -> Discussion and check “Users must be registered and logged in to comment”
- Disable authentication:
Create a PHP file inside the wp-content/mu-plugins folder, with the following content:
<?php
function wp_get_current_user() {
return new WP_User(-1);
}
This will prevent all logged-in users from leaving comments or creating posts on the old host.
Copy files and database to new host
I used FTP for transfering files and phpMyAdmin for exporting/importing the DB.
Handle DNS
- Point your domain to the new host’s IP address.
- Wait for propagation to take place.
Once the new DNS settings have propagated fully, you can nuke the old host.
Related Posts:
- Migrating a WordPress site from One Hosting Provider to Another?
- Switched hosts to one with cPanel. To transfer my blog should I do the WP install or just be uploading my old WP directory & database?
- WordPress transfer problems Cant’ find variable jQuery
- Problem With DNS or WordPress installation>
- wp-admin keeps forwarding me to an old url
- How to find out who is hosting my WordPress site?
- Hosting WordPress on Azure?
- Hosting alternatives to WordPress.com [closed]
- Hosting WordPress on Google Apps Engine (GAE)
- nginx or cherokee ( +php-fpm ) for WordPress backend?
- Running WordPress on low-end hardware/resources?
- Where should I host my images?
- Most Flawless Way To Transfer from Dev to Prod [duplicate]
- Best hosting for WordPress blog(s)? [closed]
- What issues would you face if you use Nginx
- How to detect that site is hosted on WPEngine?
- Is there a way to figure out the way to access hosting if I have admin privilege?
- WordPress hosting – Shared/dedicated server? Any recommendations? [closed]
- Host wordpress on a subdirectory of a Rails application
- Do I need “wordpress hosting” to host wordpress?
- Google Site and WordPress
- Deploy WordPress From Local Docker to Hosting Provider
- Do i need the git directory?
- How much should this hosting cost? [closed]
- How can I view or FTP into my WordPress site hosted on AWS?
- How can I use more than 2 DB’s
- WordPress out of memory allocated issue?
- Free swf files hosting for wordpress blog
- Multisite domain naming
- Point domain to different webhost’s subdirectory wordpress
- Has anyone used the wordpress plugin w3-total-cache on a Dreamhost VPS successfully? [closed]
- WordPress moved to a new server with a new databank. Just Theme no plugins. Site worked for minutes then went offline. cant login. Server says 408
- Dynamic sites and hosting limits: PHP Workers VS User Processes Per Sec Limits
- Configure WordPress Installation autoinstalls via Softaculous in WHCMS [closed]
- “508 Resource Limit Is Reached” on WordPress site
- The easiest way to migrate a wordpress website across servers
- Free WordPress Hosting with Custom Themes? [closed]
- Recommendation for server config for WordPress Staging servers [closed]
- Choose specific kind of hosting service for WordPress?
- Is my host the problem?
- Is Windows hosting a bad idea for wp?
- Stepping up my game with WordPress hosting [closed]
- Moving a wordpress.org website to another domain name?
- Can I move WordPress to another folder?
- Why is WordPress filtering Pastebin URL’s
- Different Server for Images
- How to host and manage for clients
- Fantastico pros and cons
- Add wordpress to only one domain in shared hosting with multiple domains
- lost all the links in WordPress after changing hosting
- Unable to Edit Destination settings – 1and1 hosting [closed]
- Hosting wordpress on Amazon [closed]
- Moving WordPress.com site to personal domain intact
- Moving from one host to another – cannot access the dashboard
- How many WP websites can go on one shared hosting account?
- Hostinger masked redirection to wordpress website
- What’s more important for supporting concurrent users on an elearning site with dynamic content, CPUs or RAM?
- Resting a site for a couple of years
- A way to check if wordpress installation is self-hosted or hosted via wordpress.com?
- My blog load time on Bluehost and Word press is too much. I have slipped in Google Search Ranking
- WIll it be a good idea to host my website images on a 3rd-party service?
- Alternatives to hosting WordPress post content?
- Migrating existing site to Azure is slow
- How to check the speed of a WordPress site on different hosts without WordPress access?
- White Homepage after Domain Name Change
- Minimum EC2 Requirements for a stable WordPress site
- Integrate wordpress before hosting
- Factors for NON-cached performance?
- WordPress working only in directory named “wordpress”
- Moved my site to new host now getting 404
- Migrating domain name from old WP host to new (which uses vhosts)
- Will it make any difference if I have CDN on the same server but different directory?
- Need to delete a wordpress website from Cpanel
- WordPress hosting good practice
- Can I host wordpress separately on one hosting account?
- Change a web programmed in ASP.net to WordPress from scratch in the same Hosting
- I am looking for a specialist WordPress host [closed]
- Moved site to 1&1 hosting, but is broken and redirecting to GoDaddy 404 [closed]
- How to Disconnect My Domain Name?
- Difference between WordPress stand alone & through host gator
- Call to undefined function _deprecated_file() in class-smtp.php
- Changing a domain for a current WP site without having it go inactive
- Limit the harddrive storage of multiple WordPress instances on one webserver
- Help with cPanel and sending email
- Troubleshooting “Error establishing a Redis connection” during WordPress migration
- Redirect Bitnami WordPress
- Site is not fully working after migration
- What is ICANN domain status: ‘clientTransferProhibited’?
- Google reCAPTCHA V3.0 not working. “ERROR for site owner: Invalid key type”
- ping: google.com: Temporary failure in name resolution [closed]
- My users get “net::err_name_not_resolved”
- what is the multicast doing on 224.0.0.251?
- How can i convert my Delphi.NET project to Delphi Prism?
- What’s the source of Error: getaddrinfo EAI_AGAIN?
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- Email Not Sending from Byethost Hosting
- Not Authorized to View This Page
- SQL Server String or binary data would be truncated
- Java error: Comparison method violates its general contract
- Difference between Amazon EC2 and AWS Elastic Beanstalk