wp-config.php文件最后加上下面代码:
/*设置相对路径*/ $home = 'http://'.$_SERVER['HTTP_HOST']; $siteurl = 'http://'.$_SERVER['HTTP_HOST']; define('WP_HOME', $home); define('WP_SITEURL', $siteurl);
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
wp-config.php文件最后加上下面代码:
/*设置相对路径*/ $home = 'http://'.$_SERVER['HTTP_HOST']; $siteurl = 'http://'.$_SERVER['HTTP_HOST']; define('WP_HOME', $home); define('WP_SITEURL', $siteurl);