読み込み中...
読み込み中...
.htaccessのリダイレクトルール(301/302)、mod_rewriteの設定をGUIで生成。Apache設定に詳しくなくても簡単。無料ツール。
# Generated .htaccess
RewriteEngine On
# HTTP → HTTPS 強制
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# www → non-www
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]