Skip to content

Commit e94928b

Browse files
author
Jovert Lota Palonpon
committed
Updated .htaccess
1 parent 1a7b68c commit e94928b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

public/.htaccess

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
RewriteRule ^ index.php [L]
2121

2222
##Force SSL
23+
24+
RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
25+
RewriteCond %{HTTP:X-Forwarded-Proto} =""
2326
RewriteCond %{HTTPS} !=on
24-
RewriteCond %{HTTP:X-Forwarded-Proto} !https
25-
RewriteCond %{HTTP_HOST} ^laravel-react-admin.herokuapp.com
26-
RewriteRule ^(.*)$ https://laravel-react-admin.herokuapp.com/$1 [R,L]
27+
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
2728
</IfModule>

0 commit comments

Comments
 (0)