Hi there! I have a photography portfolio using a domain I own that cloudflare manages the DNS for. I just changed portfolio hosts (from SmugMug to Pixieset) and have switched from using the naked domain (https://monochromatic.co) to using the standard domain with www (https://www.monochromatic.co).
I think because of how I switched hosts, right now going to the naked domain gives a 502 bad gateway from nginx. I added two page rules to try and redirect from the naked domain to the regular one. Both are 301 redirects, one going from monochromatic.co/* to https://www.monochromatic.co/$1 (because I read in this thread that would preserve path between requests). The other goes from https://monochromatic.co/* to https://www.monochromatic.co/$1.
Is that correct? Will it accomplish what I want it to, or is there something else I should be doing? Thanks!