frosty
frosty

Reputation: 2659

Linking to a site without SSL on a site with SSL

I have SSL installed on one of my website, and I'm trying to place a link on the website linking to another of my website that does not have SSL installed. But when clicking on the link, it redirected me to a page that said something like "Your connection is not private. Attackers might be trying to steal your information." Is there any way to override this somehow?

test.php

<a href = "//www.nossl.com"> wwww.nossl.com </a>

^---this is linking to the site without SSL installed.

Result:

Your connection is not private. Attackers might be trying to steal your information.

Need Result:

Actual website displaying.

Upvotes: 1

Views: 485

Answers (2)

wogsland
wogsland

Reputation: 9518

Try the full URL:

<a href = "http://www.nossl.com"> www.nossl.com </a>

Upvotes: 2

SLaks
SLaks

Reputation: 887767

You're using a protocol-relative URL, which points to that site with HTTPS (since that's the protocol of the page with the link).

Add http: to explicitly make the link point to the non-SSL URL.

Upvotes: 6

Related Questions