##.htaccessに以下を記載 RewriteEngine on #Let's Encrypt validationのリクエストを除く RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/ RewriteRule (.*) https://YOURSITE.COM/$1 [R=301,L]