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.

How to force browsers to https

Discussion in 'General Discussion' started by PowWeb, Dec 2, 2004.

  1. PowWeb

    PowWeb Active Member

    Joined:
    Oct 22, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    I have a site that I need all users to be redirected to https not http. How can I do this?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    put the code below into your .htaccess file



    Options +SymLinksIfOwnerMatch
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !=443
    RewriteRule ^ https://lowesthost.com%{REQUEST_URI} [R,L]
     
Loading...

Share This Page