Results 1 to 2 of 2

Thread: unintentional results of redirecting with htaccess

  1. #1
    nux
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts

    unintentional results of redirecting with htaccess

    Hey, I current redirect a bunch of countries to another site by using the following htaccess settings:

    GeoIPEnable On
    GeoIPDBFile /usr/share/GeoIP/GeoIP.dat

    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|IQ|NG|IR|SA|AG|MY|ID|CL|KW|AE|TR|RU|BR)$
    RewriteRule ^(.*)$ Proxy Sites [L]

    I found a few of my sites were being redirected to juvos.com via google. For example, sidemart.com, unblockfacebook.com, and many more.

    Example: http://www.google.com/search?hl=en&q...&aq=f&oq=&aqi=

    This sucks for SEO purposes...but it may explain why juvos is ranking so well, lol. All those backlinks coming in that I intended for other sites.

    So it seems Google is crawling my site from those countries that are being redirected.

    What I did is changed it to:

    GeoIPEnable On
    GeoIPDBFile /usr/share/GeoIP/GeoIP.dat

    # Redirect one country
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} !googlebot¦Msnbot¦Slurp¦Teoma¦^$ [NC]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|IQ|NG|IR|SA|AG|MY|ID|CL|KW|AE|TR|RU|BR)$
    RewriteRule ^(.*)$ Proxy Sites [L]

    You'll notice the "RewriteCond %{HTTP_USER_AGENT} !googlebot¦Msnbot¦Slurp¦Teoma¦^$ [NC]" line to exempt googlebot and other common bots from getting redirected. It's been a week or two and I haven't seen any changes in Google's results. Any htaccess guru's able to confirm this works? Am I doing something wrong? I haven't found a proxy in those countries that I can change my useragent on, so I haven't been able to test. Any thoughts, ideas?

    Thanks,
    -nux
    Submit Your Proxies @ NewProxySites.com

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    ProxyLeech should help you find an HTTP proxy whichou can use to browse from those countries and test your redirecting code.

    I think it's funny what Juvos' listing looks like with the StumbleUpon toolbar loaded.
    Attached Images Attached Images
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

Similar Threads

  1. Replies: 12
    Last Post: 23 June, 2010, 04:31 AM
  2. Redirecting Category Pages Help...
    By Alex Fraiser in forum Promoting
    Replies: 2
    Last Post: 11 July, 2009, 13:21 PM
  3. Redirecting permalinks?
    By CoreyFreeman in forum Wordpress
    Replies: 1
    Last Post: 22 June, 2009, 09:46 AM
  4. Myspace redirecting to Google
    By Mr.Bill in forum Web Proxies
    Replies: 0
    Last Post: 29 May, 2009, 02:26 AM
  5. Help Redirecting Traffic
    By joel8520 in forum Web Proxies
    Replies: 16
    Last Post: 19 March, 2009, 18:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

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