Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created September 28, 2016 09:01
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 Kaiderella/df060d32080764373c21f856b3a36fff to your computer and use it in GitHub Desktop.
Save Kaiderella/df060d32080764373c21f856b3a36fff to your computer and use it in GitHub Desktop.
Redirect toàn bộ link từ HTTP sang HTTPS
# Redirect all links from HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment