URLの整理
www.有り無し
https
http
headerにcanonicalタグで優先順位を明示
1 |
<link rel="canonical" href="https://www.example.com/"> |
301リダイレクト
.htaceessで以下を記述
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]