- 浏览: 849878 次
- 性别:
- 来自: lanzhou
文章分类
最新评论
-
liu346435400:
楼主讲了实话啊,中国程序员的现状,也是只见中国程序员拼死拼活的 ...
中国的程序员为什么这么辛苦 -
qw8226718:
国内ASP.NET下功能比较完善,优化比较好的Spacebui ...
国内外开源sns源码大全 -
dotjar:
敢问兰州的大哥,Prism 现在在12.04LTS上可用么?我 ...
最佳 Ubuntu 下 WebQQ 聊天体验 -
coralsea:
兄弟,卫星通信不是这么简单的,单向接收卫星广播信号不需要太大的 ...
Google 上网 -
txin0814:
我成功安装chrome frame后 在IE地址栏前加上cf: ...
IE中使用Google Chrome Frame运行HTML 5
Migrate from Blogger to WordPress without Losing your Google Search Rankings
- 博客分类:
- web stuff
The Goal: Your current blog at abc.blogspot.com is hosted on the Blogger platform but you now want to move this blog from Blogger to WordPress (self-hosted) with a personal domain name (say abc.com).
The Problem: WordPress.org provides an easy option to automatically import all your old blog posts and reader comments from Blogger into your new WordPress blog but there are still some bigger problems that are hard to ignore:
1. Some of your previous articles on the blogspot blog could be ranking very high in search engines for certain keywords but once you shift these articles to a new address, you might lose all that organic search traffic.
2. You cannot use a 301 redirect with Blogger to inform search engines that your site has permanently moved a new web address thus losing PageRank and other Google Juice.
3. Not just search bots, human beings who come to read your old articles via links from other sites won’t know about the new location of those articles unless you manually insert the new links in each and every blogspot article (impossible for large blogs).
4. When you switch blogging platforms, existing blog readers who are subscribed to your Blogger RSS Feed may be lost forever if they don’t manually update their RSS readers with your new WordPress feed address (and most won’t).
5. When you lose RSS subscribers and search engines rankings, the pageviews will drop and that will seriously impact your AdSense revenue in case you are running Google ads.
The Solution: Now that you are aware of the various issues associated with moving sites from Blogger to WordPress, the very good news is that there exists a simple solution to deal with all these problems in one go.
You can quickly and safely migrate any blog from Blogger to WordPress without losing RSS Subscribers or human visitors and there’s also a way to pass all that Google Juice from the old blogspot.com address to your new WordPress blog.
How to Move a Blog from Blogger to WordPress
Important: Before you implement anything, it may be a good idea to run through these steps on a dummy blog first. Also, backup your Blogger blog including the XML template, posts and comments just to be the safe side.
If something doesn’t make sense, just watch the screencast video below (download).
Step 1: In case you haven’t done this already – register a new web domain, buy server space from some web hosting company* that offers PHP / MySQL hosting and and install WordPress software on your new domain.
*This site is hosted on Dreamhost.com but there are other good hosting options like GoDaddy, Blue Host, Media Temple and Knowhost – most services offer one-click WordPress installation so you don’t need the help of a geek.
Step 2: Go to your WordPress Admin Dashboard -> Tools -> Import and select the Blogger option. Authorize WordPress to access your Google Account and within minutes, all your old blog posts and comments will be available on the new WordPress site.
Step 3: Copy this file into your WordPress themes directory and then rename the file from blogger.php.txt to blogger.php. You may use either Putty with wget or Web FTP to access your WordPress themes directory located on the web server. For credentials and other details, check your cPanel.
Here are the contents of that file.
<?php /* Template Name: blogger */ global $wpdb; $old_url = $_GET['q']; if ($old_url != "") { $permalink = explode("blogspot.com", $old_url); $q = "SELECT guid FROM $wpdb->posts LEFT JOIN $wpdb->postmeta ". "ON ($wpdb->posts.ID = $wpdb->postmeta.post_id) WHERE ". "$wpdb->postmeta.meta_key='blogger_permalink' AND ". "$wpdb->postmeta.metavalue='$permalink[1]'"; $new_url = $wpdb->get_var($q)? $wpdb->get_var($q) : "/"; header ("HTTP/1.1 301 Moved Permanently"); header("Location: $new_url"); } ?>
Step 4. Open your WordPress dashboard and go to Pages -> Add New Page. Keep the title and URL of that page as blogger and select "blogger" from the Template drop-down. Save. There’s no need to add any content to this page.
Step 5. Open the template generator, type the full address of your new WordPress blog (including http:// and the trailing slash) and this tool will create a new classic template for your blogspot blog that will look something like this.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="<$BlogLanguageDirection$>"> <head> <title><$BlogPageTitle$></title> <script type="text/javascript"> <MainOrArchivePage>window.location.href='xxx'</MainOrArchivePage> <Blogger><ItemPage>window.location.href='xxxblogger/?q=<$BlogItemPermalinkURL$>'</ItemPage></Blogger> </script></head><body> <div style="border:#ccc 1px solid; background:#eee; padding:20px; margin:80px;"> <p>This page has moved to a new address.</p> <h1> <MainOrArchivePage><a href="xxx"><$BlogTitle$></a></MainOrArchivePage> <Blogger> <ItemPage><a href="xxxblogger/?q=<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></ItemPage> </Blogger> </h1> </div> </body></html> <!-- replace xxx with your WordPress site URL --->
Step 6. Open your Blogger Dashboard -> Layout -> Edit HTML and choose "Revert to Classic Blog". Copy-paste the template generated in Step 5 in the "Edit Template" area and click "Save Template Changes".
Your are done. Open any page on your old Blogger blog and it should redirect you to the corresponding WordPress page. On the WordPress side, since we are using a permanent 301 redirect with the redirection URLs, all the Google Juice will probably pass to your new WordPress pages with time.
Update your RSS Feed: When you move from Blogger to WordPress, the address of your RSS feed will change as well. Go to Blogger -> Settings -> Site Feed, type the address of your new WordPress RSS feed here and Google Reader, Bloglines, etc. will automatically move to your new feed. Check this FeedBurner FAQ for some more ideas.
发表评论
-
[图解]搞笑漫画图解几大浏览器的区别
2010-03-20 08:48 1331[图解]搞笑漫画图解几大浏览器的区别 ... -
Web 设计与开发终极资源大全
2010-03-20 08:41 1639Web 技术突飞猛进,Web 设计与开发者们可以选择的工具越来 ... -
超炫jQuery 运动特效展示
2010-03-08 10:30 19361. 流感导航菜单 下面 ... -
Apple removes over 5000 apps from iPhone app store
2010-02-23 08:04 924Apple is causing a stir in the ... -
RIP Google Gears
2010-02-22 07:56 780Back in December, we discussed ... -
美报称谷歌遭攻击源自中国两学校 校方否认
2010-02-20 08:04 640环球网2月19日消息 谷歌近期受到黑客攻击,美国媒体报道说,源 ... -
互联网现状(图片)
2010-02-18 08:34 873如图: -
下一个Twitter?
2010-02-18 08:21 1098也许很多人还不知道, ... -
北京电信推3G宽带新套装
2010-02-08 08:58 832中国电信北京公司(以下简称北京电信)近日宣布,已于2月1日全新 ... -
网友声音:我讨厌Chrome OS的五大理由
2010-01-18 14:55 1781自从Google公布Chrome OS的第一条信息,关于它的讨 ... -
Microsoft should follow Google and drop censorship in China
2010-01-14 09:10 879Kudos to Google for finally sta ... -
Gmail全面升级为https数据加密型邮箱服务
2010-01-14 09:04 964谷歌邮件服务Gmail的博客又发了新帖。该博客表示在2008的 ... -
Google 在首页号召大家帮助海地地震的幸存者
2010-01-14 09:01 734Google在海地发生7级地震后,迅速做出反应, 在英文首页 ... -
百度主页被黑11小时 黑客反击多家伊朗网站被黑
2010-01-14 08:44 980“伊朗网军”攻击说引质疑 从1月12日早上7点半开 ... -
看看老外是怎么评价操作系统的!
2009-12-20 11:29 903def this_is_really_funny ... -
Google推免费公共DNS服务 OpenDNS反击
2009-12-10 11:22 1095上周五Google宣布向所有的互联网用户提供一组快速,安全 ... -
BT网站被关后 最大电驴下载网陷“故障门”
2009-12-10 11:14 1393因没有获取广电总局颁发的《信息网络传播视听节目许可证》,BT ... -
电驴瘫痪网友纷纷“哀悼” 官网称线路故障10日恢复
2009-12-10 04:00 992针对P2P资源分享网站Very ... -
VeryCD网站无法正常访问 或遭广电总局关闭
2009-12-09 15:18 73912月9日下午消息,多名网友向腾讯科技反映,就在昨天还可以 ... -
外刊:投资暴雪股票十大理由
2009-11-22 05:41 849投资月刊《SINLetter》编 ...
相关推荐
#### 标题解析:Migrate from Oracle 9i RAC to 10g RAC 标题明确了本文档的主要内容是关于如何从Oracle 9i Real Application Clusters (RAC) 数据库迁移至Oracle 10g RAC数据库的过程。这涉及到数据库架构、软件...
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
migrate from on-premises to Azure SQL Database Managed Instance
标题中的“Paragon Migrate OS to SSD v4.0 x64”是一款专门用于操作系统迁移的软件工具,由Paragon Software公司开发。该版本号“v4.0”表明这是该软件的第四次主要更新,而“x64”则表示它支持64位操作系统。后缀...
Upgrade, Migrate & Consolidate to Oracle Database 12c: Strategies, General Preparation Steps, Upgrade & Migration Cases; Fallback Strategies; New Features in Oracle 12c; Performance Management.
How to Migrate from On-premises to Office 365, https://docs.microsoft.com/zh-cn/sharepointmigration/introducing-the-sharepoint-migration-tool
Teaches you to start up Nginx and quickly take your expertise to a level where you can comfortably work with various aspects of the web ...Learn how and what to migrate from IIS & Apache web servers.
Migrate ARM Compiler 5 to ARM Compiler 6 中文翻译版本
删除jquery-migrate.js脚本依赖项。 投稿人: 要求: 4.0 经过测试: 4.1 执照: 从jQuery依赖项列表中删除jquery-migrate.js脚本,以使其在不需要时不会在前端加载。 安装 上载 从GitHub下载。 转到WordPress...
【标题】:“Migrate from Box to Dropbox-crx插件”是一种专为用户设计的工具,旨在帮助他们方便地将数据从Box云存储平台迁移至Dropbox。这款扩展程序解决了用户在多个云服务之间同步和迁移数据时可能遇到的困扰,...
With the rapid growth of MySQL in the database market, many corporations, government agencies, educational institutions, and others have begun to migrate away from their expensive and proprietary ...
Import Shopify to WooCommerce - Migrate Your Store from Shopify to WooCommerce 进口Shopify到Woocommerce - 将您的商店从Shopify迁移到Woocommerce" ---------- 泰森云每天更新发布最新WordPress主题、HTML...
How to Migrate Email to the Cloud-EN.pdf
How to Migrate Email to the Cloud-CN.pdf
《jQuery Migrate 3.0.0:解决版本迁移中的兼容问题》 jQuery Migrate 是一个专门为了解决jQuery不同版本间兼容性问题而设计的插件。在标题中提到的"jquery-migrate-3.0.0.zip",是这个插件的一个特定版本,即3.0.0...
Explore some tools used to migrate to Git from other versioning systems without losing your development history Understand the Git data model and how you can navigate the database with simple commands...
Migrate comments from valine to disqus. 将 Valine 评论数据转换为 Disqus 可导入的格式。 Usage 前情提要 数据准备参见: 覆盖 data/valine-comment.json 文件,或者修改 src/config.js 中的 path 配置项。 转换...
**jQuery Migrate 插件详解** jQuery Migrate 是一个非常重要的工具,特别是在更新到jQuery 1.9及以上版本时。由于这些新版本中删除了一些在旧版本中广泛使用但被认为已过时的功能,jQuery Migrate 提供了对这些...
《jQuery Migrate 3.4 版本详解》 jQuery Migrate 是一个插件,它的主要目的是帮助开发者平滑地过渡到较新版本的 jQuery,解决老版本代码在新版本中可能遇到的兼容性问题。在jQuery Migrate 3.4.0版本中,我们看到...