Forum Moderators: phranque
Do you have a sample from your raw server access log? (Please obscure any uniquely-identifiable info -- e.g requestor IP addresses, domain names.)
Jim
200.85.***.50 - - [12/May/2006:09:15:04 -0400] "GET /Qstore/Qstore.cgi?CMD=011&PROD=1022544466 HTTP/1.0" 200 10606 "http://images.google.com.co/imgres?imgurl=http://www.mysite.com/Qstore/upl/agrocampo2.jpg
&imgrefurl=http://www.mysite.com/Qstore/Qstore.cgi%3FCMD%3D011%26PROD%3D1022544466&h=218&w=325&sz=27
&tbnid=nx7aeD-utJbNfM:&tbnh=76&tbnw=114&hl=es&start=15
&prev=/images%3Fq%3DAGROCAMPO%26svnum%3D10%26hl%3Des%26lr%3D%26rls%3DGGLG,GGLG:2006-10,GGLG:es%26sa%3DN" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
200.85.***.50 - - [12/May/2006:09:15:05 -0400] "GET /Qstore/upl/agrocamp.jpg HTTP/1.0" 200 2134
200.85.***.50 - - [12/May/2006:09:15:05 -0400] "GET /Qstore/upl/agrocamp.jpg HTTP/1.0" 200 2134 "http://images.google.com.co/imgres?imgurl=http://www.mysite.com/Qstore/upl/agrocamp.jpg
&imgrefurl=http://www.mysite.com/Qstore/Qstore.cgi%3FCMD%3D011%26PROD%3D1022544466&h=218&w=325&sz=27
&tbnid=nx7aeD-utJbNfM:&tbnh=76&tbnw=114&hl=es
&prev=/images%3Fq%3DAGROCAMP%26svnum%3D10%26hl%3Des%26lr%3D%26rls%3DGGLG,GGLG:2006-10,GGLG:es%26sa%3DN
&frame=small" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
thanks
[edited by: jdMorgan at 1:20 am (utc) on May 13, 2006]
[edit reason] Obscured specifics, fixed side-scroll [/edit]
We can't write code on demand here -- the demand would simply be too great for the limited number of contributors here to keep up with. We'll be happy to answer specific questions to help you get started learning to do it yourself, though. A good place to start is with the documents cited in our Forum Charter [webmasterworld.com]. Alternately, a search on WebmasterWorld may turn up some previously-posted code to serve as an example.
Jim
http://images.google.com/imgres?imgurl=http://www.mysite.com/Qstore/uploads/sagfamwin.jpg&imgrefurl=http://www.mysite.com/Qstore/Qstore.cgi%
3FCMD%3D011%26PROD%3D1019662770&h=324&w=229&sz=34&hl=en&start=1&tbnid=c0SFBs8jlpas9M:&tbnh=114&tbnw=80&prev=/images%3Fq
So basically when people click the top frame of the google image search results page which shows the image directory URL on my server it's fine since the image hasn't moved, but the actual page where it can be found (the bottom frame of a Google image search) is what can't be found. I am not concerned with people not being able to find the JPEG, but rather the page where the JPEG is embedded. Keeping that in mind would it still be impossible to route them seeing that the URL is bifurcated?
RewriteCond %{HTTP_REFERER} ^http://images\.google\.com/imgres\?imgurl=http://www\.[i]mysite\.com[/i]/Qstore/uploads/
RewriteRule ^Qstore/(Qstore\.cgi¦upload/[^.]+\.jpg)$ http://www.[i]mysite.com[/i]/ [R=301,L]
Jim