.htaccess help

Discussion in 'Domain Names' started by sabian1982, Jan 25, 2007.

  1. #1
    Hi,

    Could someone please provide information on what information to put in the .htaccess file in order to redirect a subdomain to root domain please?

    ie http://sub.olddomain.com to http://www.newdomain.com

    (subdomain is run off folder: http://www.olddomain.com/sub)

    Also presumably if done correctly the PR from the subdomain will transfer eventually to the full new domain?

    Cheers
     
    sabian1982, Jan 25, 2007 IP
  2. Seiya

    Seiya Peon

    Messages:
    4,666
    Likes Received:
    404
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Seiya, Jan 25, 2007 IP
  3. dnk

    dnk Well-Known Member

    Messages:
    1,576
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    143
    #3
    Sometimes, due to server settings, .htaccess does not work.
     
    dnk, Jan 25, 2007 IP
  4. sabian1982

    sabian1982 Notable Member

    Messages:
    2,028
    Likes Received:
    161
    Best Answers:
    0
    Trophy Points:
    210
    #4
    I've solved the problem now thanks - i use cpanel but didnt realise that you could do a redirect via the subdomain setup page... problem sorted :)
     
    sabian1982, Jan 26, 2007 IP