Goodbye, Old Sites! Or, How To Transfer A Whole WordPress Blog To A New Site With Just Four Lines Of Code…

If you’re reading this unexpectedly, then you’ve likely come from one of my other sites – go to this page for more on those domains…

Yes, you can easily redirect a WordPress blog by a trick – edit or replace the website’s index.php file (the one at the root of the blog – NOT the theme’s). Use this code:

header('HTTP/1.1 301 Moved Permanently' );

What it does is relocate ALL blog pages to the new single blog page (HTML, PHP, WP, etc.) on the new site. Note it doesn’t transfer Admin pages, or any other content on your site – just WP blog pages.

Why? Several reasons:

  • Politeness. If you close off a site, why not be polite and warn people? A site abruptly disappearing is confusing, especially if it’s from a search engine link. It also gives you a chance to catch visitors, for example to redirect them somewhere useful.
  • Search. Speaking of search engines, this tells them you are will redirect permanently all old links from the old site to one new page. Knowing that, the search engines will transfer the links over.
  • Cleanliness. If you’re selling a domain, it can be fun to say ‘it has 3,000 links’, but the fact is, unless the buyer is getting the site itself, the links are worthless and will shortly disappear. Be nice, be clean, and transfer relevant links ahead of time, so everyone knows what they are getting.

Of course, this technique is specific to WordPress – for other sites with non-WordPress content, you’d be better to use an .htaccess edit to get all pages – but if it’s just a WP site, it’s a great way to sign off…

Money-Making Automated Wordpress EBOOK STORE + 200 Ebooks + INSTALLATION
End Date: Monday Dec-12-2016 6:40:06 PST
Buy It Now for only: $15.00
Buy It Now | Add to watch list
Arcade Wordpress games affiliate website Installed for you
End Date: Thursday Dec-8-2016 6:39:13 PST
Buy It Now for only: $19.99
Buy It Now | Add to watch list
Wordpress Website With 3 Months Free Hosting 10 + Plugins
End Date: Wednesday Dec-7-2016 21:37:56 PST
Buy It Now for only: $6.99
Buy It Now | Add to watch list

Comments are closed.