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…

Domains now available – some may be from time to time listed on eBay (if active) or else contact me directly. Prices are listed by each:

ACTIVEBLOGGING.COM ($4750) TOPTENTRICKS.COM (package, including TOP10TRICKS.COM, 10TOPTRICKS.COM, and TENTOPTRICKS.COM) ($3750) BIGBIZBLOG.COM ($675)
AUDSTUFF.COM ($375) TECHTALKTODAY.COM ($375) MEMMOB.COM ($375)
SEEABOUTIT.COM ($175) ROCKETRETRIEVER.COM ($175) EGWEBSITE.COM ($175)
THEFRIENDSSHOP.COM ($175) FINDGOODART.COM ($75) MANOKENT.COM ($75)
COUCHSPUDS.COM ($75)    

 

Besides some various other ‘test’ sites, I’ve also shut down BigBizBlog, one of my earliest (first post on November 16th, 2004, just a few months before this one). While a favorite for a long time, it’s just no longer time-effective to run it – one blog is plenty! Also, its focus on business, while interesting, is only one aspect of the many topics I want to write about (and can easily do so here) – hence, the shutdown.

NOW FOR THE TECHNICAL:

As mentioned, 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:

<?php
header('HTTP/1.1 301 Moved Permanently' );
header('Location: http://egwebsite.com/newpage.htm');
?>

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…

SOME ITEMS YOU MIGHT ENJOY
Established iPhone Website for sale, Profitable Wordpress Turnkey adsense amazon
$0.99 (0 Bids)
End Date: Thursday Jul-31-2014 17:40:53 PDT
Buy It Now for only: $49.93
Buy It Now | Bid now | Add to watch list
WordPress Cash Machine eBook Resell Rights PDF + Bonus FREE DELIVERY
$0.50 (0 Bids)
End Date: Friday Aug-1-2014 5:39:14 PDT
Buy It Now for only: $0.99
Buy It Now | Bid now | Add to watch list
Sahifa - Responsive WordPress Theme
$2.25 (0 Bids)
End Date: Saturday Aug-2-2014 21:21:37 PDT
Bid now | Add to watch list


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>