📅  最后修改于: 2022-03-11 14:54:53.383000             🧑  作者: Mango
// add these 2 lines to your wp-config.php,
// exactly before requiring wp-settings.php
define( 'WP_HOME', 'http://localhost/site' );
define( 'WP_SITEURL', 'http://localhost/site' );
// NOTE: you'r overriting the homeurl locally, without changing the value in DB.