砍敺 IT_man 2017-7-28 22:36 蝺刻摩 $ v% i0 M5 q/ @' M4 q! v7 y+ Z
+ x% e M; l ?) i# L6 X. [
蝺刻摩蝡暺頝桅銝wp-config.php瑼獢,曉
2 t+ g% y, ^7 _. h$ v8 D, U% E, K1 a, l: O' f1 y4 O/ n n
require_once(ABSPATH . 'wp-settings.php');, w6 M; F# A( S7 t- K# Z; f5 a3 X8 |- o
- ~, D y! H, F& N R3 N銝祆臭潭敺銝銵
, d# M5 N4 Y" b+ C2 c* |, w' ]典W銝隞乩隞蝣:
4 A5 |6 f: e9 s% a( Q/ l c) G/ r1 Z6 Q6 m: t4 j
- $yourhome = 'http://'.$_SERVER['HTTP_HOST'];
* i7 B' b- a6 M: S* u - $yoursiteurl = 'http://'.$_SERVER['HTTP_HOST'];
: J/ ^2 g; z) \% L4 s1 Z6 T - define('WP_HOME', $yourhome);
$ J; _ `, H; ~ - define('WP_SITEURL', $yoursiteurl);
銴鋆賭誨蝣
6 R# R; s. b. b% a0 ?' `PHP銝剔$_SERVER['HTTP_HOST']雿冽舐脣靘皞5 T( r( {2 I: y1 |* |: A* G% Y
璅嚗撠梯賣寞靘皞 WP_HOME WP_SITEURL 拙撣豢貉釵潘撖衣鋒ordPress憭蝬摰; x, T5 E# ~: y( }! C, ]3 i# |
5 \9 `: s! t0 N9 l8 y7 Z* E- J7 @ D+ u6 Q1 ~1 ~, F, m. Z! W- S
9 ?* o& d; S2 s3 t) n2 m% d
|
|