301 Redirect to Subdomain

Discussion in 'Apache' started by INV, Sep 25, 2007.

  1. #1
    INV, Sep 25, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    You do da opposite!

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.DOMAIN\.com [NC]
    RewriteRule ^(.*)$ http://DOMAIN.com/$1 [R=301,L]
     
    Nintendo, Sep 25, 2007 IP
  3. INV

    INV Peon

    Messages:
    1,686
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #3

    Thanks! I missed the dashes, i think! :p
     
    INV, Sep 25, 2007 IP