WWW統一 .htaccess

https://htaccess.cman.jp/explain/redirect_url.html

# === wwwなしに統一 ================================
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.cman\.jp
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ http://cman.jp/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.cman\.jp
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(.*)$ https://cman.jp/$1 [R=301,L]

eakon99.com

 

 

# === wwwなしに統一 ================================
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.eakon99\.com
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ http://eakon99.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.eakon\.com
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(.*)$ https://eakon99.com/$1 [R=301,L]

2020・12・19日に書き換え

コメント