Created
October 26, 2018 14:53
-
-
Save ansidev/cde41e7567e79e30ec41cca9545d2490 to your computer and use it in GitHub Desktop.
Auto redirect Netlify site from HTTP to HTTPS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto redirect Netlify site from HTTP to HTTPS. | |
[[redirects]] | |
from = "http://yoursite.netlify.com" | |
to = "https://yoursite.netlify.com" | |
[[redirects]] | |
from = "http://yoursite.netlify.com/*" | |
to = "https://yoursite.netlify.com/:splat" | |
status = 301 | |
[[redirects]] | |
from = "yoursite.netlify.com" | |
to = "https://yoursite.netlify.com" | |
[[redirects]] | |
from = "yoursite.netlify.com/*" | |
to = "https://yoursite.netlify.com/:splat" | |
status = 301 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment