douyu5679
douyu5679
2010-11-29 20:36
浏览 28
已采纳

使用1个数据库的多个WP安装

I have three different URLS on the same server that need to share one WordPress 3.0.1 DB. I want to be able to add a new post from one main WP and the changes show up on the other two sites.

Is the change in config file (db table) enough?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • douxin1956
    douxin1956 2010-11-30 00:53
    已采纳

    First of all, I think you're confusing multisite and multiple Wordpress installs with one database.

    Three Wordpress installs can pull from the same database. (But not "table", as you first said and I edited.) Multiple installs can work from the same database by using different table prefixes so each install doesn't collide with the other or get overwritten when the 2nd, 3rd, etc., installs get made. See Installing Multiple Blogs « WordPress Codex

    But you're asking for trouble by trying to use three different URLs unless you go Multisite and share content in a different way.

    What you should do is either use three Wordpress installs with three different table prefixes on one database with WordPress › FeedWordPress « WordPress Plugins to duplicate the content.

    Or, Wordpress Multisite with three folders under one WP admin (requires a VPS with access to httpd) and WordPress › WordPress MU Sitewide Tags Pages « WordPress Plugins.

    Or, Wordpress Multisite with three domains under one WP admin (requires a VPS with access to httpd and DNS changes for the separate domain mapping) with WordPress › WordPress MU Domain Mapping « WordPress Plugins and WordPress › FeedWordPress « WordPress Plugins to duplicate the content.

    Be aware that duplicate content will also get your SEO penalized.

    And, is this question so you can bid on this Elance job?: Have three URLS that need to share the same WP DB | Elance Job

    点赞 评论
  • dongxian5735
    dongxian5735 2010-11-29 20:59

    Yeah that is fine, but you must make sure that all of the codebases are identical (ie when you update one, you update them all). Also it is best that you only do manual upgrades otherwise you will lose track.

    点赞 评论

相关推荐