My site works only with www. but if I enter it into the browser without www. then it redirects me to the https://www.site.com version.
I checked the Network tab in Inspector and when I type in the browser site.com/wp-admin(no www.) there is a 302 redirect to ?redirect_to=https://site.com/wp-admin/&reauth=1 and the url at the address bar is https://www.site.com/Custome-URL/?redirect_to=….