Reputation: 2659
I can't link to sites that don't use the https://
starting URL. For example, I can link to google because it started with http://
, but I can't link to stackoverflow, because it doesn't. I'm using a web server called ipage, and my domain is in a sub directory.
When I click on the stackoverflow link, it brings me to a page like this: www.mydomainname.com/www.stackoverflow.com.
<a href = 'https://www.google.com/'> https://www.google.com/ </a>
<a href = 'www.stackoverflow.com'> www.stackoverflow.com </a>
Upvotes: 2
Views: 479
Reputation: 4445
use this approach
<a href = '//www.google.com/'> https://www.google.com/ </a>
<a href = '//www.stackoverflow.com'> www.stackoverflow.com </a>
and it will work fine.
just remove http
and https
from start and put //
infront
Upvotes: 1