The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

https redirection

Discussion in 'Security' started by Thorgalalix, Dec 2, 2014.

  1. Thorgalalix

    Thorgalalix Registered

    Joined:
    Nov 15, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    hello,
    i have set a ssl cetificat and my website continue to show /http://exemple.com

    My website work with /https://exemple.com
    But if i test standard adresse http it's work also.
    I have cPanel.
    What i must to do for have only protocole for my website?

    Thank
    Best regards
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    To clarify, are you seeking to configure your website so that access over "http" is completely disabled, or do you want access attempts redirected to "https"?

    Thank you.
     
  3. Thorgalalix

    Thorgalalix Registered

    Joined:
    Nov 15, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    i want just when i user come to my website only https protocole is enable. If can disabled http it's also good.
     
  4. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    940
    Likes Received:
    55
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    If you want the site to only allow SSL access, and not normal http, you can use a basic rewrite like this one:

    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
    
    This would go in the main .htaccess for that account at the location /home/USERNAME/public_html/.htaccess
     
Loading...

Share This Page