Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
Created November 29, 2016 03:58
Show Gist options
  • Save nishinoshake/59ca44ae6d7ec16d52f44502254cc282 to your computer and use it in GitHub Desktop.
Save nishinoshake/59ca44ae6d7ec16d52f44502254cc282 to your computer and use it in GitHub Desktop.
.htaccessでSSLを強制
RewriteEngine On
# Redirect If Not Secure
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment