Hi there,
actually I use PHP7 with FPM@nginx for my website which uses ssl (https). For this, I use the following code in the nginx section:
In the hosting configuration of my abo I set the preferred domain as "www", so I get four redirects (says google pagespeed insights): it's
But this is bad and gives low score on pagespeed insights. So I have to change it. For I'm not so the expert of nginx-Code... can anybody please help me? How should I change the code for the following effect:
So, all request should be transfered to an https-output.
greets,
lola
actually I use PHP7 with FPM@nginx for my website which uses ssl (https). For this, I use the following code in the nginx section:
Code:
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
In the hosting configuration of my abo I set the preferred domain as "www", so I get four redirects (says google pagespeed insights): it's
Code:
> http://domain.de to http://www.domain
> http://domain.de to https://domain.de
> http://domain.de to https://www.domain.de
> http://www.domain.de to https://www.domain.de
But this is bad and gives low score on pagespeed insights. So I have to change it. For I'm not so the expert of nginx-Code... can anybody please help me? How should I change the code for the following effect:
Code:
> http://domain.de to https://www.domain.de
> http://www.domain.de to https://www.domain.de
> https://domain.de to https://www.domain.de
So, all request should be transfered to an https-output.
greets,
lola
Last edited: