Results 1 to 3 of 3

Thread: Referrer Redirect - Htacess

  1. #1
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635

    Referrer Redirect - Htacess

    Anyone happen to know how i cange this code:

    # Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?google.com *$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?google.net *$ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?google.ca *$ [NC]
    RewriteRule \.*$ http://forums.gaywidewebmasters.com [R,L]

    Into a .htaccess file to only redirect SPECIFIC Google search terms to another page?

    Regards,

    Lee


  2. #2
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    I think you would be able to do this through a php script on your landing page for google traffic, ie, setup your htaccess as it is to send all google traffic to a landing page like google.php and then use php code to get the passed s.e. term variable and present the page based on that.

    Does that make sense? I am pretty sure this type of thing can be done, I am not really sure of the actual code though.

    Are there any php programmers on board that can help?

    ps - wouldn't this get you banned from google if they found out?

    cheers,
    Luke


  3. #3
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635
    Originally posted by Chilihost
    ps - wouldn't this get you banned from google if they found out?
    Apparently not

    Im currently running .htaccess to redirect Google traffic on one of my domains that rank highly for specific terms however, i have another domain that i want to redirect Google hits from directly without having to change the file extensions as that would be to much work

    Regards,

    Lee


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •