I would rather not use cloudflare for the redirection because we are limited with the number of page rules we can have (only 3) and I have to make around 10 other redirections like this one
I really don’t understand why this one above works, and not the one in my initial post
Where are you adding that location? I’m asking because you should add it to nginx.conf_whatever and/or nginx.ssl.conf_whatever (you can change whatever by the name you want).
1.- You should do it this way so your conf won’t be overwritten when rebuilding the domain. 2.- If you are forcing https, then you must be sure to include the new location in nginx.ssl.conf_whatever
Yes, if you have created your own templates, that is the best way to do it.
Those templates are creating the nginx conf files in /home/USER/conf/web/DOMAIN/ so double check those nginx files to view that modified templates are being used.
I have opened and saved (without modifying) those nginx.conf files, and it suddenly worked, so I added another redirection for https:// www. cablefibreoptique.fr/cables/ and did the same things, but this one doesn’t work atm!