![]() |
.HTACCESS re-direction based on referer, how ?
The thing is .. I have some galleries which Google listed in some good positions .. but I can't just re-direct the traffic from them because they are galleries .. and the TGPS would ofcourse ban me :)
But can I somehow make a .HTACCESS file in that folder that re-directs all traffic from GOOGLE to a sponsor instead of the gallery ? And would that be wise ? |
Looks like a good idea because this should not violate the general TGP rules.
|
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www|directory)?\.google\.com RewriteRule .* http://www.whereyouwantit.com [R,L] redirect from google search and google directory Edit: you can tweak it a little for country specific google domains like google.ca google.de etc. etc. RewriteEngine on RewriteCond %{HTTP_REFERER} ^http://(www|directory)?\.google\.[a-z]{2,3}/ RewriteRule .* http://www.whereyouwantit.com [R,L] this one should be OK |
Thanks dude
|
Anothers,
<< RewriteEngine on << RewriteCond %{HTTP_REFERER} ^http://(www|directory)?\.google\.com << RewriteRule .* http://www.whereyouwantit.com [R,L] It doesn't work .. if I make a .HTACCESS with the above and place it in the folder I can't load any of the HTML files in it (Not permitted) ? |
All times are GMT -7. The time now is 07:32 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123