Skip to content

Commit 4355a6e

Browse files
committed
Add http to https redirect
1 parent f1954dc commit 4355a6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
RewriteEngine On
77

8+
# Redirect to https
9+
RewriteCond %{HTTPS} off
10+
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
11+
812
# Handle Authorization Header
913
RewriteCond %{HTTP:Authorization} .
1014
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

0 commit comments

Comments
 (0)