I tried adding this to my server config file. to redirect non-www to www and it crashed my site… It says too many redirects. How do I fix this
server { server_name example.com www.example.com; return 301 $scheme://www.example.com$request_uri; #this is the line i actually added }