Everything to https://

Discussion in 'Apache' started by crazyryan, Mar 1, 2007.

  1. #1
    I want everything on my site to redirect to https://

    So entering with http(s)://www.sslsneak.com would redirect to https://sslsneak.com

    Can anyone help ?
     
    crazyryan, Mar 1, 2007 IP
  2. nicknick

    nicknick Peon

    Messages:
    429
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you could probably use mod_rewrite to do it if you're on Unix. Or talk to your hosting company about setting it up that way for you.
     
    nicknick, Mar 1, 2007 IP
  3. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #3
    Yeah, I need the code for .htaccess
     
    crazyryan, Mar 1, 2007 IP
  4. Rogem

    Rogem Peon

    Messages:
    171
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah, Apache is that way to go, you could look into getting a SLL thingy, there about $90 a year I think.
     
    Rogem, Mar 1, 2007 IP
  5. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #5
    I have one of them, but it doesn't automatically re-direct..
     
    crazyryan, Mar 1, 2007 IP
  6. oziman

    oziman Active Member

    Messages:
    199
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #6
    
    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{SERVER_PORT} !443$
    RewriteRule (.*) https://www.blahblah.com/$1 [R=301,L]
    Code (markup):
    let me know if it doesn't work...
     
    oziman, Mar 4, 2007 IP