My site works only with www. but if I enter it into the browser without www. then it redirects me to the http://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=http://site.com/wp-admin/&reauth=1 and the url at the address bar is http://www.site.com/Custome-URL/?redirect_to=….
I get redirected to the Custom Login URL with www.
So if I enter http://site.com/wp-admin I get taken to http://www.site.com/custom-login-url