How to apply an SSL cert to AMember?

Discussion in 'Setting-up protection' started by sunseapromos, Mar 17, 2011.

  1. sunseapromos

    sunseapromos Member

    Joined:
    Apr 26, 2010
    Messages:
    72
    I have a site that I purchased an SSL Cert for and my host has installed it.

    Now my host tells me I need to use some code or something to get the site to show as secure for visitors when it is dialed up? He said to contact AMember -- so here I am!

    The site is:
    http://www.christianhomebusinessassoc.com
    when dialed up like that or with https://...
    and then you click the security icon in the browser to the left of the URL in the address bar, it says the site is "....not encrypted..."

    If you could direct me as to what to do next in the process would be great!

    Thank you! :)
    Claudia
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Claudia,
    In aMember you should set amember CP -> Setup -> Global -> Secure Root url to https url.
    Then if you want that your whole site be secure, edit your site's pages and make sure that all additional content like CSS, images, scripts are loaded from https url as well.
    Page will be secure only if itself will be loaded through secure connection and all additional content will be loaded through secure connection as well.
  3. sunseapromos

    sunseapromos Member

    Joined:
    Apr 26, 2010
    Messages:
    72
    Thanks Alexander, that makes sense.

    The only thing I need secure is where the script processes payments and stores the members' info. Per the AMember manual, that is suggested if we use a CC processor which we do.

    Can you tell me which folders in regards to this I should make https urls so my job is easier? We've had this site online for a while now and it is loaded with pages, it would take me forever to redirect every page to a new url. Ughhhhhh....

    Also, in the global set up I have: https://www.christianhomebusinessassoc.com/amember as the secure URL.

    Does that mean that all the pages not in the "amember" folder are not secure, correct?

    Thanx!
    Claudia
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Claudia,
    With your current setup aMember should redirect user to https url when take payments.
    I see you customized aMember templates and for example if I try to open this page:
    https://www.christianhomebusinessassoc.com/amember
    header image still will be loaded through hot secure connection because you have image url hardcoded in template:

    http://www.christianhomebusinessassoc.com/images/Headers_Pgs/CHBAsite_header_ampgs.jpg
    Change all urls of images and styles that you use in amember templates in this way:
    /images/Headers_Pgs/CHBAsite_header_ampgs.jpg instead of http://www.christianhomebusinessassoc.com/images/Headers_Pgs/CHBAsite_header_ampgs.jpg

    this should help.
  5. sunseapromos

    sunseapromos Member

    Joined:
    Apr 26, 2010
    Messages:
    72
    Okay - thanks once again! :) I see exactly what you are talking about.

    But I read in the manual that any of the graphics URLs in the AMember templates needed to be changed from relative to absolute urls in the templates when creating custom headers and footers????

    http://manual.amember.com/How_to_Create_Custom_Headers_and_Footers

    You need to change all the urls in the HTML from relative to absolute. Links, image paths and so on must all be changed. For example if you have a link to your home page that reads <a href="index.html"> this must be changed to <a href="http://www.yoursite.com/index.html">

    Claudia
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    My suggestion will work still because /images/Headers_Pgs/CHBAsite_header_ampgs.jpg is relative from site root. this is not necessary to include domain name in url.

Share This Page