http升級為https視頻教程 | 如何將網(wǎng)站升級為https協(xié)議 | 網(wǎng)站升
2023-02-15 12:19 作者:頭頭Lookahead | 我要投稿

?06:26?
更新域名數(shù)據(jù)庫代碼
UPDATE wp_option SET option_value = replace(option _value, “http://www.superlion.com”,”https://www.superlion.com”)
UPDATE wp_posts SET post_content = replace(option _value, “http://www.superlion.com”,”https://www.superlion.com”)
UPDATE wp_comments SET comment_content = replace(option _value, “http://www.superlion.com”,”https://www.superlion.com”)
UPDATE wp_comments SET comment_author_url = replace(option _value, “http://www.superlion.com”,”https://www.superlion.com”)
?09:14?
http 到 https 的 301轉(zhuǎn)向代碼
RewriteEngine On
RewriteCond %{ServerPort} 80
RewriteRule ^(.*)$ https://www.superlion.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^superlion.com [NC]
RewriteRule ^(.*)$ https://superlion.com/$1 [R=301,L]
標(biāo)簽: