跳至內容

Henry Note

發表於 2022-05-122022-05-12 by 亨利

WordPress開啟ssl後css無法加載

在wp-config.php中加入這一行

if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')  $_SERVER['HTTPS']='on';

但是要確保妳的修改在這一行之前require_once(ABSPATH . ‘wp-settings.php’);

source: https://blog.csdn.net/weixin_39924179/article/details/113027066

分類WordPress

文章導覽

上一篇文章前 Contact Form 7 Special mail-tags
下篇文章後 解決部份不能安裝的MACAPP

近期文章

  • 延長Windows 11更新100年
  • Mobirise slider RWD顯示問題
  • 解決部份不能安裝的MACAPP
  • WordPress開啟ssl後css無法加載
  • Contact Form 7 Special mail-tags
  • Force SSL in WordPress with Web.config
  • How to force SSL with Web.config
  • How to force www. in a generic way with .htaccess
  • Flush the DNS cache in macOS
  • How to force SSL with .htaccess
本站使用 WordPress 架設