Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    Australia (Crikey)
    Posts
    2,271

    Arrow Display a link when user is using SSL but not HTTP? Need help..please :)

    Hello. I wish to display two different links on a site of mine. If the user is at https://www.mydomain.com then I want a certain link to show, if they are at http://www.mydomain.com then I want a different link to show up. How can this be done? Any help would be highly appreciated, thanks.

  2. #2
    Join Date
    Dec 2005
    Location
    USA
    Posts
    40
    In PHP you could go:

    if(isset($_SERVER['HTTPS'] == "on"))
    {
    print "Link 1";
    } else {
    print "Link 2";
    }

    Somthing along those lines, or just embed a $_GET[] with a boolean, where you want the links. Hope this helps, contact me via AIM if it doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •