WordPress URL Change
發表於 : 2013-10-08 14:56:49
http://codex.wordpress.org/Changing_The_Site_URL
1.wp-config.php
2./wp-content/themes/xxx/functions.php
3. 修改樣板的連結
index.php
page.php
sidebar.php
single.php
footer.php
header.php....
1.wp-config.php
代碼: 選擇全部
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
代碼: 選擇全部
update_option('siteurl','http://example.com/yourblog');
update_option('home','http://example.com/yourblog');
index.php
page.php
sidebar.php
single.php
footer.php
header.php....