Re-direct Search Engine traffic to another page on the same site problem

Discussion in 'Apache' started by Andy$$$, May 28, 2007.

  1. #1
    Hi,

    Im just have gone through 100s of post and still I can't find out why my redirect script doesn't work ok. Anyone that can help me out here please?

    RewriteBase /
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} ^.*yahoo.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^.*google.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^.*msn.*$
    RewriteRule ^$ http://www.mysite.com/newdirectory/newpage.html [R,L]

    I have placed the above in an .htaccess file in the root of my domain. But each time I got to http://www.mysite.com I end up in http://www.mysite.com/newdirectory/newpage.html and it doesnt matter what referer I have. I only want to re-direct visitors from yahoo, google and msn to the newpage.html all other visitors should continue to go to root.

    Thanks in advanced,

    Andy
     
    Andy$$$, May 28, 2007 IP
  2. Andy$$$

    Andy$$$ Peon

    Messages:
    205
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone? Please I need some help here :)
     
    Andy$$$, May 31, 2007 IP
  3. Andy$$$

    Andy$$$ Peon

    Messages:
    205
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I give up, moving to a new server anyway so I guess that will solve my problem :)
     
    Andy$$$, Jul 17, 2007 IP