Redirect subdomain to new addon URL

Discussion in 'Apache' started by Kutub Utara, Jun 7, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Hi, I hope someone can help me with this. I recently bought a new domain, www.thisnewone.com which I have setup as an addon domain for my subdomain directory, located at directory.thisoldone.com. Problem is, some people are still visiting directory.thisoldone.com so how do I write a mod_rewrite that will take people from directory.thisoldone.com to www.thisnewone.com? Also, will this enable the old domain to transfer its PR to the new one?

    Thanks in advance for the reply.
     
    Kutub Utara, Jun 7, 2007 IP
  2. damonp

    damonp Peon

    Messages:
    97
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What you need is a mod_rewrite 301 (Moved Permanently) redirect. The FAQ on these forums has a howto.
     
    damonp, Jun 8, 2007 IP
Thread Status:
Not open for further replies.