There are several easy steps to properly shut down a WordPress site:
1 – Migrate Your Posts and Pages to a New Site
You worked hard on those old posts and it would be a waste to loose them all. Without loosing your content migrate the posts and pages using the built in WordPress import/export tool:
2 – Set All of The Old Pages To Draft
On the old WordPress sit:
- click POSTS > ALL POSTS
- select all posts (click the check box beside TITLE)
- select EDIT (from the BULK ACTIONS dropdown)
- select DRAFT from the STATUS menu
- click the UPDATE button (top right corner)
3 – Create a New Redirect Notice Page
On the old site, create a new post (or page) the explains why you are shutting down the site, that the existing content has been moved to a new site and that visitors will be automatically redirected to the new site after a number of seconds.
4 – Add A Redirection After Time Period Script
As we explained in How To Redirect a Web Page After A Time Period add a redirect script to your Redirect Notice Page you created in step 3:
- edit the redirect post
- click the TEXT tab in the top right
- paste in the following script
<script>
//redirect to www.PartisanIssuses.com new site after 6 second delay
setTimeout(function () {
//Redirect with JavaScript
window.location.href= 'https://www.PartisanIssues.com/';
}, 6000);
</script> - Change the second last line of the script from www.PartisanIssues.com to whatever the destination should be
5 – Install a 404 Redirect Plugin
Because you set all of the pages to DRAFT (in step 2 above) they no longer exist on your site and they will all return a 404 Page Not Found error. You could use a standard redirection to your new site but that would not provide them with an explanation of what is happening.
On the old site:
- install and activate a plugin named All 404 Redirect to Homepage
- click SETTINGS > All 404 Redirect to Homepage
- set it to redirect all 404 pages to the post/page you made in step two
Now you can let the old site sit for a few months and then actually kill it (i.e. sell the domain, let the domain expire, remove DNS…) now that your visitors have had time to adjust.
0 Comments