Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Google Image Redirect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mrbrantley
Newbie
Newbie


Joined: 07 December 2006
Location: United States
Online Status: Offline
Posts: 3
Posted: 29 September 2008 at 10:24am | IP Logged Quote mrbrantley

Looking to have a rewrite based on the referrer images.google.com.  When the referrer is images.google.com, I want to redirect to somepage.asp and use the referrer URL in a querystring.

ex.  images.google.com?search=house   ==>  somepage.asp?term=images.google.com?search=house

 

Any suggestions?

Back to Top View mrbrantley's Profile Search for other posts by mrbrantley Visit mrbrantley's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 29 September 2008 at 10:43am | IP Logged Quote Anton

Please try to apply this config:

RewriteCond %{HTTP_REFERER} (.*images\.google\.com.*) [NC]
RewriteRule .? http://www.domain.com/somepage.asp=%1 [NC,R=301,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
mrbrantley
Newbie
Newbie


Joined: 07 December 2006
Location: United States
Online Status: Offline
Posts: 3
Posted: 29 September 2008 at 10:52am | IP Logged Quote mrbrantley

Tried, did not seem to work. 

The URL from images.google.com has a multitude of querystrings it passes as well.  Is this config just looking for an exact referrer match or is it just looking for images.google.com somewhere in the referrer?  I do not care about anything but if the referrer is images.google.com, redirect and maintain the querystrings.

Thanks for the help!

Back to Top View mrbrantley's Profile Search for other posts by mrbrantley Visit mrbrantley's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 30 September 2008 at 4:44am | IP Logged Quote Anton

Please try to use this config and in case of problems, please provide rewrite log records for the specific request.

RewriteCond %{HTTP_REFERER} (.*images\.google\.com.*) [NC]
RewriteRule .? http://www.domain.com/somepage.asp?term=%1 [NC,R=301,QSA,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum