Skip to content

Instantly share code, notes, and snippets.

@igorparrabastias
Created February 27, 2014 18:30
Show Gist options
  • Save igorparrabastias/9255965 to your computer and use it in GitHub Desktop.
Save igorparrabastias/9255965 to your computer and use it in GitHub Desktop.
Forzar https automáticamente via .htacces
# Crea/edita .htaccess en el directorio raíz de la app
vi .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
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