Skip to content

Instantly share code, notes, and snippets.

@mosugi
Created March 18, 2017 06:43
Show Gist options
  • Save mosugi/0a4c44b8ed91b1930322eb5917cfab9c to your computer and use it in GitHub Desktop.
Save mosugi/0a4c44b8ed91b1930322eb5917cfab9c to your computer and use it in GitHub Desktop.
さくらインターネット SSL
<IfModule mod_rewrite.c>
RewriteEngine on
# RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Sakura-Forwarded-For} ^$
RewriteRule ^(.*)$ https://mosugi.com/$1 [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment