跳至內容

Henry Note

發表於 2020-08-182022-11-05 by 亨利

How to force www. in a generic way with .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>

source: https://www.dataplugs.com/tc/kb/使用-htaccess-檔案強制將-http-導向-https-ssl/

分類WordPress

文章導覽

上一篇文章前 Flush the DNS cache in macOS
下篇文章後 How to force SSL with Web.config

近期文章

  • 延長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 架設