1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Force https/SSL single domain; howto

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by DocGerry, Jan 20, 2013.

  1. DocGerry

    DocGerry New Pleskian

    10
    35%
    Joined:
    Jan 20, 2013
    Messages:
    5
    Likes Received:
    0
    Plesk 9.5 on Ubuntu on a VPS. Three domains on the server, one of them has the SSL certificate which is the host name of the VPS server

    SSL certificate installed myownsingledomain.com

    All traffic to http://myownsingledomain.com and files and subdirectories I want to redirected to https://myownsingledomain.com

    The domain is set to use the one directory httpdocs, and https://myownsingledomain.com works...the secured green thing comes up on browsers as authenticated until of course you click on any link and it takes you to back to http

    Anyone clicking on http://myownsingledomain.com needs to be directed to https with a Rewrite.

    The server seems to ignore .htaccess but there is probably a more elegant solution anyway. Perhaps it is so obvious I do not see anything in FAQ or searching the forum. I have searched around and do not find a Plesk specific solution.

    Thanks
     
  2. DocGerry

    DocGerry New Pleskian

    10
    35%
    Joined:
    Jan 20, 2013
    Messages:
    5
    Likes Received:
    0
    No suggestions as yet.....
     
  3. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Put this in .htaccess

    And make sure your apache conf file has this in it somewhere
     
Loading...