Skip to content

Commit

Permalink
_redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDengHui committed Oct 12, 2024
1 parent 87fb4de commit 5c1885e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/*
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Forwarded-Proto: https
X-Content-Type-Options: nosniff
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
1 change: 1 addition & 0 deletions _redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://* https://:splat 301
8 changes: 7 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
Strict-Transport-Security = '''
max-age=63072000;
includeSubDomains;
preload'''
preload'''

[[redirects]]
from = "http://*"
to = "https://:splat"
status = 301
force = true

0 comments on commit 5c1885e

Please sign in to comment.