Skip to content

Instantly share code, notes, and snippets.

@moradi-morteza
Created May 27, 2020 08:14
Show Gist options
  • Save moradi-morteza/f608ebe4d53985d2a80fd5c64f67af0d to your computer and use it in GitHub Desktop.
Save moradi-morteza/f608ebe4d53985d2a80fd5c64f67af0d to your computer and use it in GitHub Desktop.
[ssl service]
// in htaccess file add this file
# Force SSL
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment