砍敺 IT_man 2017-7-28 22:36 蝺刻摩 ( K* C: X S* m9 F8 g
* T r( V2 Q) B蝺刻摩蝡暺頝桅銝wp-config.php瑼獢,曉
" A# A- S) V N- n% s8 Y1 n4 A4 w$ g: | W( J! W$ v8 t7 g# B
require_once(ABSPATH . 'wp-settings.php');3 e+ k4 I2 k2 w O' g# ?
8 c ^4 E- \) y2 \8 e銝祆臭潭敺銝銵
) v' A* ?& s( P8 X典W銝隞乩隞蝣:
1 ^8 }& ^# L( _4 T) G
* @1 u( E, Q# x; f- n' r- i L, ?- $yourhome = 'http://'.$_SERVER['HTTP_HOST']; , w$ t- [0 m0 `
- $yoursiteurl = 'http://'.$_SERVER['HTTP_HOST']; * j: k$ f* a2 M6 H3 h
- define('WP_HOME', $yourhome); . z9 M# c' k8 U7 i
- define('WP_SITEURL', $yoursiteurl);
銴鋆賭誨蝣 0 |6 P7 p5 f- G5 a8 H' N" v8 R% z6 ~
PHP銝剔$_SERVER['HTTP_HOST']雿冽舐脣靘皞% d# `/ S& e: Q5 x6 p- H9 u
璅嚗撠梯賣寞靘皞 WP_HOME WP_SITEURL 拙撣豢貉釵潘撖衣鋒ordPress憭蝬摰0 W1 S! `) C/ `9 A/ V" F. D
# d( h6 \5 x# j) G. u0 [ Z, n
1 V& @, k! |4 B
. `9 t0 J8 t t1 | ~) P+ x& H |
|