Hi there, I would like re-direct all of the traffic I'm currently receiving from Google Video to another page on my site (www.domain.com/gvideo.html) instead of where it's going at the moment which is www.domain.com I guess this would be the same re-directing the traffic that comes from Google Images - but I have no idea how to do it. My current .htaccess file looks like this because I also run Wordpress on this domain: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> What would I need to add? Any help would be much appreciated! Thanks, Pete
RewriteBase / RewriteCond %{HTTP_REFERER} ^http://video\.google\. RewriteRule ^$ gvideo.html [R,L] Code (markup): Something like that? Match the referrer with video.google. (can't be more specific because google uses different TLDs) and redirect to gvideo.html
Thanks Rodney I will give it a try: Will that fit in to my current .htaccess ok, or do I need to put it in a specific way? I'm not good at this at all - how do I include the .com TLD? Cheers, Pete
It can go anywhere that doesn't interupt the existing rules so: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] RewriteBase / RewriteCond %{HTTP_REFERER} ^http://video\.google\. RewriteRule ^$ gvideo.html [R,L] </IfModule> Code (markup):