流水

巨大勇气-再见zblog,迎接WordPress

水文章

再在zblog里面水最后一篇文章,话说今年第一篇文章就水是有点过分,但是工程量实在是很大。省点时间吧,少说两句。

zblog网站的内容

爱好折腾

世上有难事,但是经不起折腾。

难事来了,我用过zblog的asp版本,zblogasp转zblogphp比较简单,有插件,数据结构也比较接近,但是zblogphp转WordPressphp的时候就难了。

难事是经不起折腾的,敢折腾,对于难来说就不怎么存在了,事也解决了。在转之前要达到一个目的,有一个完整的思路

  1. 域名和原来的一样,也就是说要有一个测试域名临时用着,等替换完成再更改。比如zblog我现在用的域名是www.shijianairen.com和shijianairen.com,shijianairen.com重定向到www.shijianairen.com,我现在把shijianairen.com这个域名解绑,新建一个shijianairen.com为域名的站点,开始搭建WordPress的网站。等以shijianairen.com的这个WordPress网站做好了,再把www.shijianairen.com这个域名解绑,绑定到shijianairen.com的站点上,然后shijianairen.com再重定向到www.shijianairen.com,因为我主域名就是设计的要用www为主机头。
  2. url和原来的一样,也就是说原来配置的伪静态规则要用到新的上面,为的是已收录的文章和分享出去的文章,要保证搜得到就要打的开。当然有四五百篇文章都是搜不到的,如果没有验证到管理员登陆的cookie,那些隐藏的内容是不能显示的。要达到已收录的文章和分享出去的文章都可以打开,那就要在新的WordPress网站上设计和设置伪静态以及重定向的配置
  • 在现在的zblog里面我的主页就是www.shijianairen.com
  • 在现在的zblog里面我的分类页是www.shijianairen.com/category-guanyuwenxue.html,但是分类只有十个,而且部分分类里面都是隐藏的文章,所以即便是删除几个分类,分类重建也是可以完成的。我打算建成www.shijianairen.com/guanyuwenxue。WordPress默认的分类路径是www.shijianairen.com/category/guanyuwenxue,应该要用到一个插件是nocategory或者就改代码。
  • 在现在的zblog里面我的标签是www.shijianairen.com/tags-literature.html,分类比较多有四五十个吧,这个就尽量和原来一样比较好,因为涉及的内链接比较多。
  • zblog评论的那个链接是不收录的,所以不用管,谁也不会闲的没事分享别人的评论那个链接,他也不好找。所以不管。
  1. 系统里是文章,标签,分类,独立页面,日期页,评论(包括留言)
  2. 服务器上目录结构主要是图片存放的路径,因为文章里面用到的就是url上的绝对路径。这个可以直接把zb_users/upload搬到shijianairen.com的根目录,保证原来文章的图片还在。但是既然决定了要折腾一番,那就改个彻底,查了一下数据表才发现,对了,不能直接那样改,这一步是省不了的。导出sql之后用notepad++或者sublimetext等等代码编辑器吧,查找替换(一般为ctrl+h),查找的是https://luhangwang.oss-cn-hongkong.aliyuncs.com/lhoss/old/  替换为   wp-content/uploads 。因为zblog在开发的过程中也考虑到维护的问题,不一定就安装在根目录,所以他也有一个相对路径。这个要替换掉才能换。使用phpmyadmin查看图片的属性
  3. 独立页面和日期页没什么好说,影响不大,主要还是分类、标签、文章的url

数据对接:

zblog发了有七八百篇文章,当然大多数是隐藏的,转移到WordPress后还是会隐藏,这个就不要想着看了,因为很多东西用一句话总结就是“知识越多越反动”,我留作学术和思想的成长史就够了,等能公开说的时候一定都拿出来。

……扯远了,回归正题,这些文章的发布日期、浏览次数、评论次数、评论的时间。都只能手动去改了,不过还是可以用数据替换,不要去文章发布界面一个个点鼠标选日期时间。

129 thoughts on “巨大勇气-再见zblog,迎接WordPress

  1. Excellent post. I used to be checking continuously this weblog and
    I am impressed! Extremely helpful info particularly the final part :
    ) I handle such information much. I used to be seeking this particular info for
    a very long time. Thanks and best of luck.

  2. It’s a pity you don’t have a donate button! I’d definitely donate to this superb blog!
    I suppose for now i’ll settle for bookmarking and adding your RSS
    feed to my Google account. I look forward to new updates and will share this website with my
    Facebook group. Chat soon!

  3. Hi there very cool web site!! Guy .. Beautiful ..
    Wonderful .. I will bookmark your web site and take the feeds additionally?
    I’m happy to find a lot of helpful information here within the put up, we need develop more strategies on this regard, thanks for sharing.
    . . . . .

  4. It’s a shame you don’t have a donate button! I’d most certainly donate to this
    fantastic blog! I suppose for now i’ll settle for bookmarking and
    adding your RSS feed to my Google account. I look forward to
    brand new updates and will share this blog with my Facebook group.
    Talk soon!

  5. I like what you guys are up also. Such smart work and reporting!
    Carry on the superb works guys I’ve incorporated you
    guys to my blogroll. I think it will improve the value of my web site :).

  6. Hi, i read your blog from time to time and i own a similar one
    and i was just wondering if you get a lot of spam responses?

    If so how do you prevent it, any plugin or anything you can recommend?
    I get so much lately it’s driving me insane so any assistance is very much appreciated.

  7. Awesome blog you have here but I was wondering if you knew of any forums
    that cover the same topics talked about here?
    I’d really love to be a part of group where I can get advice
    from other experienced individuals that share the
    same interest. If you have any recommendations, please let me know.

    Thanks a lot!

  8. Howdy! Someone in my Facebook group shared this website with us so I came to give it
    a look. I’m definitely loving the information. I’m bookmarking
    and will be tweeting this to my followers! Terrific blog and great design and style.

  9. Right here is the perfect website for anybody who hopes to
    find out about this topic. You understand a whole lot its almost tough to argue with you
    (not that I personally will need to…HaHa). You definitely
    put a brand new spin on a topic that has been discussed for a long time.
    Wonderful stuff, just wonderful!

  10. Admiring the time and energy you put into your website and in depth information you provide.
    It’s awesome to come across a blog every once in a while that isn’t the same out of date rehashed
    material. Great read! I’ve saved your site and I’m including your RSS feeds to my Google account.

  11. Thank you for another wonderful article. The
    place else could anybody get that kind of info in such a perfect method of writing?
    I’ve a presentation subsequent week, and I’m at the look
    for such information.

  12. I like what you guys are up also. Such clever work and reporting!
    Carry on the excellent works guys I’ve incorporated you guys
    to my blogroll. I think it’ll improve the value of
    my site :).

  13. I think what you published made a ton of sense. However, what about this?
    suppose you added a little information? I mean, I don’t want
    to tell you how to run your blog, however suppose you added a title that makes people
    desire more? I mean 巨大勇气-再见zblog,迎接WordPress
    – 时间爱人 is kinda boring. You ought to look at Yahoo’s front page and
    watch how they create post titles to grab viewers interested.
    You might add a related video or a related pic or two to grab people excited about everything’ve got to say.
    In my opinion, it could make your website a little livelier.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

答案 : *
30 − 3 =


返回顶部