.htaccess redirect, help needed

Discussion in 'Apache' started by campolar, May 10, 2009.

  1. #1
    Currently my .htaccess is the following:
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteRule ^(.*)$ https://www.domain.com/$1 [R=permanent,L]
    
    Code (markup):
    That makes it that whoever opens http://domain.com they r redirected to https://www.domain.com

    i want it that who ever opens http://domain.com , http://www.domain.com and https://domain.com are redirected to https://www.domain.com

    in short i want 3 variations of the domain (out of 4) to be redirected to another variation...

    any suggestions?
     
    campolar, May 10, 2009 IP
  2. vx|brian

    vx|brian Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
  3. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, that really helped :)
     
    campolar, May 11, 2009 IP