I have both a secure ( https://111.1.111.111) and insecure ( http://111.1.111.111) website with the same domain. On my insecure home page, I want to put a link to a secure version of the site. I am currently using an absolute link:
<a href="https://111.1.111.111">Please use the secure site</a>
However, I want to change this to a relative link so that if my ip or domain changes, the same code will work. Is there any link to a safe version of my site?
source
share