Skip to content

Instantly share code, notes, and snippets.

@cazuki
Created September 17, 2015 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cazuki/17ba6ae2ba16d662b1da to your computer and use it in GitHub Desktop.
Save cazuki/17ba6ae2ba16d662b1da to your computer and use it in GitHub Desktop.
HTTPSへの301リダイレクト
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment