Loading
0

WordPress使用相对路径访问

wp-config.php文件最后加上下面代码:

/*设置相对路径*/
$home = 'http://'.$_SERVER['HTTP_HOST'];

$siteurl = 'http://'.$_SERVER['HTTP_HOST'];

define('WP_HOME', $home);

define('WP_SITEURL', $siteurl);

最后编辑于:2023/2/20作者: joycode

我不入地狱,谁入地狱?

评论已关闭