Point parked domain to subdirectory

Discussion in 'Apache' started by lbalance, Aug 16, 2007.

  1. #1
    I bought another domain name for a site and I want it to go directly to a subdirectory.

    For example, if:
    mainurl.com goes to mainurl.com
    i want newurl.com to go to mainurl.com/new/
     
    lbalance, Aug 16, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RewriteCond %{HTTP_HOST} www\.yournewdomain\.com
    RewriteRule (.*) http://www.yourolddomain.com/subdir [R=301,L]

    that should work =)

    rewrite rules are good for this type of stuff
     
    powerspike, Aug 16, 2007 IP