Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.htccessを使用するホームページindex.phpを除き、WebサイトのすべてのページでSSL(https)を使用するように強制したい
ドキュメント ルートの htaccess ファイルに、次のルールを追加します。
RewriteEngine On RewriteCond %{HTTPS} !on RewriteCond %{REQUEST_URI} !^/(index.php)?$ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]