Author
|
zPlus <->
2017-04-01 19:37:30
|
Committer
|
zPlus <->
2017-04-01 19:37:30
|
Commit
|
4f66c35
(patch)
|
Tree
|
4c98f03
|
Parent(s)
|
|
.htaccess.prod: Fix rule to remove www.
commits diff:
0858910..4f66c35
1 file changed,
5 insertions,
2 deletions
—
download
Diffstat
Diff options
+5/-2
M .htaccess.prod
9
|
9
|
|
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
10
|
10
|
|
|
11
|
11
|
|
# Remove www
|
12
|
|
- |
RewriteCond %{HTTP_HOST} ^www\.freepo\.st$ [NC]
|
13
|
|
- |
RewriteRule ^(.*)$ https://freepo.st/$1 [R=301]
|
|
12
|
+ |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
|
|
13
|
+ |
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
|
|
14
|
+ |
|
|
15
|
+ |
# RewriteCond %{HTTP_HOST} ^www\.freepo\.st$ [NC]
|
|
16
|
+ |
# RewriteRule ^(.*)$ https://freepo.st/$1 [R=301]
|
14
|
17
|
|
|
15
|
18
|
|
# Remove trailing slashes
|
16
|
19
|
|
# RewriteRule (.*)/+$ https://freepo.st/$1 [NC,L,R=301,QSA]
|