Welcome! Log In Create A New Profile


Nginx newbie - redirections not fully working

Posted by pax_v 
Nginx newbie - redirections not fully working
January 16, 2023 07:44AM
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!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 117
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready