修改圖片網址sql
UPDATE wp_options SET option_value = replace(option_value, 'http://hack.twgg.org', 'https://www.itnotetk.com') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://hack.twgg.org','https://www.itnotetk.com'); UPDATE wp_posts SET post_content = replace(post_content, 'http://hack.twgg.org', 'https://www.itnotetk.com'); UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://hack.twgg.org','https://www.itnotetk.com');
方法1.
使用phpmyadmin 登入mysql
選擇wp-options
按編輯修改以下兩欄的為您正確的網址
方法2.
登入主機修改wp-config.php
加入以下兩行
update_option('siteurl','https://www.itnotetk.com'); update_option('home','https://www.itnotetk.com');