1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is there a simply way to convert a http page to a https

Discussion in 'eCommerce' started by Khmedia, Feb 19, 2015.

  1. #1
    Hi guys,

    I recently added a payment option on one of my pages. The page displays as http in the URL. I was wondering if there was a quick solution for getting the page to display as a secure https page.

    Any ideas much appreciated!
     
    Khmedia, Feb 19, 2015 IP
  2. chakravarthy

    chakravarthy Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Hi,

    http to https 301 is more option available
    1) Using redirect in htaccess or IAS leavel
    2) In domain controller also we can do
    3) In PHP

    if(!isset($_SERVER['HTTPS'])|| $_SERVER['HTTPS']==""){
    $redirect ="https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    header("HTTP/1.1 301 Moved Permanently")
    header("Location: $redirect");}
     
    chakravarthy, Feb 21, 2015 IP
  3. gotlivechat

    gotlivechat Member

    Messages:
    516
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #3
    Other option is to change the link in your A HREF tag that points to your payment page from http to https. If you use 'include files' you could do that from one spot so changes take effect across your site.
     
    gotlivechat, Feb 24, 2015 IP
  4. mohanprakash

    mohanprakash Greenhorn

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    Yes this can be done by using

    by using RewriteEngine, RewriteCond and RewriteRule in htaccess file
     
    mohanprakash, Feb 25, 2015 IP