how can i redirect a txt. file to my main domain?

Discussion in 'Apache' started by asphalt, Jan 7, 2010.

  1. #1
    I just bought a niche domain that have pr1 but i found out that one of the file: http://www.mydomain.com/xxxxx.txt has pr4 which i could do something about it using mod rewrite to pass the pr of that file to my main domain in order to rank faster for my keywords i am trying to rank for if google think the site is actually pr4......

    I am thinking about using this code:
    RewriteEngine on
    RewriteRule ^xxxxx\.txt$ http://www.mydomain.com/ [R=301,L] 
    Code (markup):
    I'm not so sure about if it is right so any suggestion would be highly appreciated!
     
    asphalt, Jan 7, 2010 IP
  2. basia

    basia Well-Known Member

    Messages:
    263
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    155
    #2
    Whatever you put in htaccess file can be very easily verified in the browser. The code looks correct to me.
     
    basia, Jan 7, 2010 IP
  3. asphalt

    asphalt Member

    Messages:
    287
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    thanks for that! cheers!
     
    asphalt, Jan 10, 2010 IP