Making Member Profile Pages Display as https

Discussion in 'aMember Pro v.4' started by underwear, Mar 15, 2012.

  1. underwear

    underwear Member

    Joined:
    Feb 6, 2012
    Messages:
    46
    Hi there.

    Been having some trouble with Google Chrome and IE - and our SSL Certificate. Everything is pretty much covered at this point except for after a user logs into their account from our site. It is the user profile page.

    How do I set this page in aMember to display as https?

    http://www.underwearsociety.com/amember/profile

    - Thank you for the information.

    Bryan
  2. underwear

    underwear Member

    Joined:
    Feb 6, 2012
    Messages:
    46
    I fixed it by connecting to the site via FTP.
    Selected 'show all invisible files' inside of my amember folder.
    Opened up the htaccess file in a text editor.
    Found this block of code (after all the hashtags):

    Code:
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^public public.php [L]
        RewriteRule ^js.php js.php [L]
        RewriteRule !\.(js|ico|gif|jpg|png|css|swf|csv)$ index.php
    </IfModule>
    And added the following lines:

    Code:
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{SERVER_PORT} 80
        RewriteCond %{REQUEST_URI} amember
        RewriteRule ^(.*)$ https://www.mywebsite.com/amember/$1 [R,L]
        RewriteRule ^public public.php [L]
        RewriteRule ^js.php js.php [L]
        RewriteRule !\.(js|ico|gif|jpg|png|css|swf|csv)$ index.php
    </IfModule>
    Then I saved it to my desktop and dragged it back into the aMember folder (This is a wordpress install).
    It worked.
  3. underwear

    underwear Member

    Joined:
    Feb 6, 2012
    Messages:
    46
    There is a block of code underneath the edited code up above. Be sure to leave that alone. One only needs to edit what's in between the <IfModule . . . </IfModule>tags.
  4. nbgmed

    nbgmed Member

    Joined:
    Sep 13, 2011
    Messages:
    35
    BoomYeah! Thank you, underwear guy, this is very useful!
  5. underwear

    underwear Member

    Joined:
    Feb 6, 2012
    Messages:
    46
    You're welcome.

Share This Page