Copyright © All rights reserved | This template is made with by Colorlib

Next Big Event:

บทความในหมวด

WORDPRESS TUTORIALS

Wordpress Tutorials

วิธีย้าย Wordpress

2010-07-08 Games 2,686

1. แก้ไขไฟล์ wp-config.php

 

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'xxx');

/** MySQL database username */
define('DB_USER', 'xxx');

/** MySQL database password */
define('DB_PASSWORD', 'xxx');

 

2 นำ Database ตัวเก่าติดตั้งเข้าสู่ Server

 

3 แก้ Url ใน Database ใช้คำสั่ง MySql ด้านล่าง

 

UPDATE wp_options SET option_value = "urlใหม่ เช่น http://www.domain.com/" WHERE option_name = "siteurl" OR option_name = "home"

 

4 ปรับ Url ทั้งหมดของเว็บด้วยปลั๊กอิน Velvet Blues Update URLs

 

โดยปลั๊กอินตัวนี้จะทำการปรับปรุง URLs ลิงก์ต่าง ๆ จากเว็บเดิมทั้งหมดให้เป็น URLs ของเว็บใหม่โดยที่เราไม่ต้องไปแก้ไขในฐานข้อมูลโดยตรง ติดตั้งปลั๊กอิน Velvet Blues Update URLs จากนั้น activate ปลั๊กอินแล้วเข้าไปที่เมนู Settings->Update Urls ในช่อง Old URL ให้ป้อน WordPress URL เดิม หรือ URL ที่ติดตั้ง WordPress ของโฮสต์เก่า ( http://domain.com/blog ) ส่วนในช่อง New URL ป้อน WordPress URL บนโฮสต์ใหม่ ( http://domain.com/ ) แล้วคลิกปุ่ม Update URLs

 

 

อ้างอิงจาก

http://killthewhat.com


| Wordpress Tutorials

เข้าชมแล้ว 2,930,150 ครั้ง | ทั้งเว็บออนไลน์   2 ท่าน | หน้านี้ออนไลน์   1 ท่าน
Page generated in 0.0088 seconds ! ( 13 query)