📜  强制 WWW - 任何代码示例

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

代码示例1
#Force www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^retrimo.net [NC]RewriteRule ^(.*)$ https://www.retrimo.net/$1 [L,R=301,NC] 

If using for NGINX use 
https://winginx.com/en/htaccess