I'm having an issue with the code below.
As of right now, my domain is http://www.mydomain.com. When I try to click on the register link, I get an error saying:
--This webpage has a redirect loop-- $link2 = '<a href="' . esc_url(site_url('/register')) . '" title="' . esc_attr(__('Register')) . '">' . esc_attr(__('Register')) . '</a>';
The register page is an SSL page so it uses the HTTPS protocol.
Can someone please help me?