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
- Custom settings disappear during database migration?
- Getting “Cookies are blocked or not supported by your browser” on login page
- WordPress Odd migration issue
- Site migration – some images not displaying in Media Library
- Can I search posts and pages for css classes?
- How to transform a custom made static HTML website to a WordPress website [closed]
- syntax Highlighting on wordpress.com blog
- White screen after moving site to new server
- How can I figure out what is making my WordPress site so slow?
- Changing an array of IDs in the usermeta table to fit different format
- Your PHP installation appears to be missing the MySQL … After deleting and restarting from cpanel
- Moving wordpress to root folder = internal server error
- After migration works only first page
- How to migrate new web design to an existing website?
- How to dump a Microsoft SQL Server database to a SQL script?
- How much network latency is “typical” for east – west coast USA?
- How to add Featured Image on WXR from External Conversion