ท่านใดมีประสบการณ์ย้าย WPMU แบบ multi DB มั่งครับ

เริ่มโดย zidit, 11 สิงหาคม 2010, 18:48:59

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

zidit

WPMU เว็บเก่า โดเมนเก่า ทำ multi DB แต่บังเอิญ โดเมนโดน de-index เลยอยากจะเปลี่ยนโดเ้มน เปลี่ยนโฮสไปเลยครับ

ผมย้ายตามขั้นตอนดังนี้
1. ย้ายไฟล์เข้าโดเมนใหม่
2. import DB ทุกอันที่เกี่ยวข้อง เข้าของโฮสใหม่ (แก้ไขชื่อโดเมนใน database ให้เป็นโดเมนใหม่เเล้ว)
3. แก้ wp-config

แต่ มันขึ้นแบบนี้ครับ The blog you have requested is not installed properly. Please contact the system administrator.

ใครพอทราบบ้างครับ ว่าแก้ไขไงดี

ขอบคุณล่วงหน้าครับ

smaller

hxxp://yoast.com/move-wordpress-blog-domain-10-steps/

A friend recently asked me how to move his blog, which is on /blog/ on his domain, to a new domain on it's own. The steps are easy, but have to be taken in the right order to make sure you're not annoying your users and the search engines:

1.   Put up a robots.txt on the new domain with the following contents:
User-agent: *
Disallow: /
2.   Copy the database and files to the new domain.
3.   Edit wp-config.php to have the right database settings, and add the following lines, replacing sample.com with the right domain:
define('WP_SITEURL', 'hxxp://www.example.com');
define('WP_HOME', 'hxxp://www.example.com');
4.   Now set up your blog install, with the same settings as on the old domain (if you have a caching plugin installed, delete your cache files).
5.   Install the Search and Replace plugin, and do a search and replace for your old URL's and change them with your new URL's.
6.   Once you're done, and you've checked everything works twice:
7.   Remove the robots.txt file.
8.   On your old blog, add the following line to your apache .htaccess or vhost-config:
Redirect 301 /blog/ hxxp://www.newdomain.com/
9.   Remove the old blog code and database.
10.   Change your FeedBurner account, if you have one, to pick up the correct feed.

ผมย้าย wp ธรรมดาได้ครับ ไม่รู้เหมือนกันป่าวนะครับ  :-[
[direct=http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=small-]Host ดีๆ   [/direct]
[direct=http://www.theblogmagic.com/?promocode=NzE=]
ใครที่สนใจ     Blog magic 3.0   Blog Magic 3.0 สุดยอดสคริบที่ทุกคนรอคอย !!! เปิดให้สั่งซื้อแล้ววันนี้
ซื้อ Blog Magic 3.0 @3,500 บาท จาก 4,500
[/direct]

มายองเนสจัง

เราให้ หน่วยงานเข้ ย้ายให้อะ 24 ชม ก็ได้ละ  :-[

yyy

อ้างถึงจาก: smaller ใน 11 สิงหาคม 2010, 19:14:58
hxxp://yoast.com/move-wordpress-blog-domain-10-steps/

A friend recently asked me how to move his blog, which is on /blog/ on his domain, to a new domain on it's own. The steps are easy, but have to be taken in the right order to make sure you're not annoying your users and the search engines:

1.   Put up a robots.txt on the new domain with the following contents:
User-agent: *
Disallow: /
2.   Copy the database and files to the new domain.
3.   Edit wp-config.php to have the right database settings, and add the following lines, replacing sample.com with the right domain:
define('WP_SITEURL', 'hxxp://www.example.com');
define('WP_HOME', 'hxxp://www.example.com');
4.   Now set up your blog install, with the same settings as on the old domain (if you have a caching plugin installed, delete your cache files).
5.   Install the Search and Replace plugin, and do a search and replace for your old URL's and change them with your new URL's.
6.   Once you're done, and you've checked everything works twice:
7.   Remove the robots.txt file.
8.   On your old blog, add the following line to your apache .htaccess or vhost-config:
Redirect 301 /blog/ hxxp://www.newdomain.com/
9.   Remove the old blog code and database.
10.   Change your FeedBurner account, if you have one, to pick up the correct feed.

ผมย้าย wp ธรรมดาได้ครับ ไม่รู้เหมือนกันป่าวนะครับ  :-[


ขอบคุณครับ เก็บไว้ก่อนเผื่ออนาคตได้ใช้
:wanwan017:

Doytao

ลองแก้ db-config.php ของ MultiDB

บรรทัดที่ 62 ใส่ # หน้า add_vip_blog(1, 'vip1');