Hi everyone! First post here.
I am trying to set up some redirections - everything must redirect to https://www. variant.
Inside ~/etc/nginx/conf.d/redirect.conf I added lines to redirect non-www to www, on top of what certbot automatically added to my conf file:
server {
server_name dribbler.io;
return 301 https://www.dribbler.io$request_uri;
}
What works:
http://dribbler.io -- > https://www.dribbler.io
http://www.dribbler.io --> https://www.dribbler.io
What does not work and I don't know why:
https://dribbler.io 1 --> it doesn't redirect to https://www.dribbler.io
Any tips would be highly appreciated. Thanks!