![]() |
Google images htaccess redirect code not working, help please!
Hi coders
I have a slight issues. I can't get my Image Redirect Script to function after Google changed the images URL. What is wrong with this code: RewriteEngine on RewriteCond %{HTTP_REFERER} ^google\.com/imgres [NC] RewriteRule .* http://xxxtremeblog.com/redir/extremesponsor.php [NC,L] Trying to make it work on a referrer that looks like this: http://www.google.com/imgres?imgurl=...26tbs%3Disch:1 |
Code:
RewriteEngine on but remember its only for .com, you will need to do some regex to get all google domains incase they come from google.ru etc. |
here you go.
Code:
RewriteEngine on |
Hi fris, thanks a million, its a step forward, this code, however, redirects everything. both google, google images and direct URL, any suggestions ?
|
Try changing .*google to .*images\.google
|
Quote:
Code:
RewriteCond %{HTTP_REFERER} !^http://.*google\.(com¦(co\.)?[a-z]{2})/(imgres¦images) [NC] |
Quote:
|
Quote:
|
ya but when you goto google images in those countries it doesnt use that url
|
Thanks again, just tried but that code still redirects everything.
|
Quote:
|
Quote:
So not a regular setup, but still with a htaccess file. |
ya never used IIS, would have to look into it more, plus ive never really redirected google image traffic.
|
Quote:
|
You're probably going to want/need something formatted for IIRF; I have no idea what you're using for a rewrite system, and I don't do IIS either, so -
|
All times are GMT -7. The time now is 12:14 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123