GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Redirecting Google Images traffic? (https://gfy.com/showthread.php?t=757463)

Marshal 08-04-2007 12:18 PM

Redirecting Google Images traffic?
 
I was looking at webstats and found out I have tons of Google Images traffic. Whenever a query is made, it's sending traffic directly to the image. I'd like to send it to the page.

For example: http://www.mysite.com/mypic.jpg -> http://www.mysite.com/something.html whenever the refferer has "images.google" in url.

Can someone please help with .htaccess? Thanks!

geeknik 08-04-2007 12:24 PM

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png)$ [NC]
RewriteCond %{HTTP_REFERER} ^images.google.com$ [NC]
RewriteRule (.*) http://whatever.com/file.html [NC]

StuBradley 08-04-2007 01:17 PM

Whenever I have surfed Google images it always links to the page the image was originally on. If you start redirecting their surfers to a totally different page you can expect the ban hammer to start swinging in your direction I would think.

woj 08-04-2007 01:58 PM

why not just use break-out-of-frame javascript code?

Marshal 08-05-2007 05:42 AM

I don't know what happened, but thumbs on Google Images links to the original images, but not to the original pages anymore. At least for me. Btw, woj, can you post that js code?

The Duck 08-05-2007 05:52 AM

Alright thanks.

donborno 08-05-2007 06:17 AM

Quote:

Originally Posted by StuBradley (Post 12874109)
Whenever I have surfed Google images it always links to the page the image was originally on. If you start redirecting their surfers to a totally different page you can expect the ban hammer to start swinging in your direction I would think.

Excactly, Google won't like it, and it won't like it if you break out of frame[1], which was recomended in this thread. After doing so, I lost all my image traffic.

[1]
Code:

if (top.location != location) {
    top.location.href = document.location.href;
}



All times are GMT -7. The time now is 01:53 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123