Forum Moderators: phranque

Message Too Old, No Replies

How Do I Redirect traffic?

How Do I redirect search links and IP Addresses

         

Price

4:23 pm on Apr 21, 2005 (gmt 0)

10+ Year Member



I have a situation where we have a site for home improvements and I am to be compensated for leads generated by this site and for ranking increases. The boss decided to point his advertising to the main page and now we have a problem.

How can I make search engines like yahoo and google redirect to my entry pages from the search engine results links ... and his from verison go to the main page? I see the stats, but the boss claims that all the leads are only generated by verison...which I highly doubt.

I have tried this with .htaccess file of
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.google.com/
RewriteRule /* http://www.example.com/index.html [R,L]

but it did not work, so can this be done with IP addresses, I know it can block IP's but how do I do it?

Thanks in advance! :)
Mr Limited Abililites

[edited by: jdMorgan at 4:46 am (utc) on April 22, 2005]
[edit reason] Examplified. [/edit]

sitz

12:04 am on Apr 22, 2005 (gmt 0)

10+ Year Member



Aside from tweaking the last line so that it looks like this:

RewriteRule ^.* http://www.example.com/index.html [R,L]

...that looks ok. If that doesn't work, how are you testing it?

[edited by: jdMorgan at 4:46 am (utc) on April 22, 2005]
[edit reason] Examplified. [/edit]

Price

3:49 pm on Apr 22, 2005 (gmt 0)

10+ Year Member



finding the site on the search engine then hitting the link.

Price

3:51 pm on Apr 22, 2005 (gmt 0)

10+ Year Member



To find my site easily I use free web submission rank checker then enter my keywords, it then gives a rank number where I can figure 1-10 is the first page, 11-20 second page and so on.

jdMorgan

7:06 pm on Apr 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What were the results of testing the code change that sitz recommended in message#2 above?

You could also just add a 'fake' query string to tag the Google/Yahoo referrals:


RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://.+(google¦yahoo)\.com/
RewriteRule .* http://www.example.com/$1?credit_goes_to_price [R,L]

This won't change the page that is accessed, it will only make that query string show in the logs.

However, you should be able to directly sort your 'stats' by referrer anyway, so I'm not clear on why you have a problem separating Google and Yahoo referrers from Verizon referrers.

Jim

Price

7:40 pm on Apr 22, 2005 (gmt 0)

10+ Year Member



Thanks for your solution , I will give it a try!

And the problem is that the boss has his telephone number on the site and gets all the calls so I have created separate pages with my number on it now. Bad situation, but some people's greed exceeds all decency and I do not wish to give up what was agreed upon and is rightfully mine. It's 12 months of my life and my income is directly effected:(