Skip to content

Commit 4fbac7b

Browse files
committed
htaccess - add 'remove www' and 'force ssl'
1 parent dcbf1ce commit 4fbac7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

public/.htaccess

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
RewriteCond %{REQUEST_FILENAME} !-d
1010
RewriteRule ^(.*)/$ /$1 [L,R=301]
1111

12+
# Remove www.
13+
#RewriteCond %{HTTP_HOST} ^www\.(.+)$
14+
#RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
15+
16+
# Force SSL
17+
#RewriteCond %{HTTPS} !=on
18+
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
19+
1220
# Handle Front Controller...
1321
RewriteCond %{REQUEST_FILENAME} !-d
1422
RewriteCond %{REQUEST_FILENAME} !-f

0 commit comments

Comments
 (0)