nam_co
156
1
Forge

Avoid landing page redirects in forge

Posted 9 months ago by nam_co

Hi, Im getting a recommendation to Avoid landing page redirects, right now my domain should be https://www.mydomain.com but when I type my domain.com in gmatrix Im getting this recommendation

Avoid landing page redirects for the following chain of redirected URLs.

http://mydomain.com/ redirects to https://mydomain.com/

https://mydomain.com/ redirects to https://www.mydomain.com/

is it possible to avoid the non 'www' redirect and go straight to https://www this is what forge automatically puts in:

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name www.mydomain.com;
    root /home/forge/www.mydomain.com/public;

Appreciate any help, thanks

Please sign in or create an account to participate in this conversation.