1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

htaccess code to fix the farmer update

Discussion in 'Black Hat SEO' started by ronmojohny, Mar 13, 2011.

  1. ronmojohny

    ronmojohny Regular Member

    Joined:
    Dec 9, 2008
    Messages:
    283
    Likes Received:
    59
    my site's rankings got killed in the scraper and farmer updates. I would like to disable the wodrpress blog that is located on mysite.com/blog because it is filled with scraped content, and maybe even redirect all the traffic from the 2000+ pages in the blog to my homepage. Can anyone please suggest an htaccess code that I can use to do this? I'm trying to recover from the farmer update.
     
  2. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,632
    Likes Received:
    2,384
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    Try something like that:

     
  3. ronmojohny

    ronmojohny Regular Member

    Joined:
    Dec 9, 2008
    Messages:
    283
    Likes Received:
    59
    Hmm, thanks for the code, but for some reason it didn't work.. (blog still shows up)
     
  4. xboxps3wow

    xboxps3wow Power Member

    Joined:
    Jan 15, 2010
    Messages:
    737
    Likes Received:
    239
    Occupation:
    student
    Location:
    Chicago
    Do a 301 redirect of the Blog link to your homepage
     
  5. ronmojohny

    ronmojohny Regular Member

    Joined:
    Dec 9, 2008
    Messages:
    283
    Likes Received:
    59
    What I really need is a code that directs the entire contents of a folder to the homepage. I would gladly pay someone a few bucks if they could give me a working code.
     
  6. c0rrup

    c0rrup Regular Member

    Joined:
    Jul 11, 2009
    Messages:
    256
    Likes Received:
    116
    Gender:
    Male
    Occupation:
    Internet Entreprenuer
    Location:
    Mars
    Put this in your htaccess:

    redirect 301 /blog/ http://mainpage.com

    I had a similar situation and doing this for a few sites currently, hehe.
     
  7. ronmojohny

    ronmojohny Regular Member

    Joined:
    Dec 9, 2008
    Messages:
    283
    Likes Received:
    59
    Thanks, that helped a little; but the internal pages of the blog are not redirecting.

    example: www.mysite.com/blog/catagoties/thispage (which is a page in the blog) now gets a 404 error. I would like the link juice coming in to the pages of the blog to get redirected to the home page.