Skip to content

Instantly share code, notes, and snippets.

@stefthoen
Created August 18, 2014 13:43
Show Gist options
  • Save stefthoen/f942d29e870ee91a06e6 to your computer and use it in GitHub Desktop.
Save stefthoen/f942d29e870ee91a06e6 to your computer and use it in GitHub Desktop.
HTTPS redirect on Webfaction
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment