📜  如何强制非 www 和 https wordpress - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:37.705000             🧑  作者: Mango

代码示例1
# Redirect www to non-www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.charlestonboatdetailing\.com [NC]
RewriteRule ^(.*)$ https://charlestonboatdetailing.com/$1 [L,R=301]