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

How to deindex a URL in your .htaccess file?

Discussion in 'Black Hat SEO' started by Jane Hanneman, Mar 29, 2015.

  1. Jane Hanneman

    Jane Hanneman Junior Member

    Joined:
    May 1, 2014
    Messages:
    126
    Likes Received:
    5
    Hi guys,

    So I really want to deindex a URL of mine which Google keeps indexing and won't remove no matter how much I make a URL removal request and put a disallow in my robots.txt file...

    I've been told I can do this by using the htaccess file in my wordpress.

    Can anyone tell me how I'm supposed to do this?
     
  2. SEO Power

    SEO Power Elite Member

    Joined:
    Jul 14, 2014
    Messages:
    2,642
    Likes Received:
    683
    Occupation:
    Self employed
    Location:
    Houston, TX
    Google deindexes every domain blocked via robots.txt and submitted via the URL removal tool within 24 hours. There must be something you are doing wrong.
     
  3. Jane Hanneman

    Jane Hanneman Junior Member

    Joined:
    May 1, 2014
    Messages:
    126
    Likes Received:
    5
    The url I am trying to deindex was a html page on my site which I have now deleted. I've been told that I can input this on my robots.txt file to remove it...

    Disallow: /endofurl/

    It hasn't deindexed it. Is there anything wrong with that?
     
  4. nenelounnge

    nenelounnge Newbie

    Joined:
    Mar 30, 2015
    Messages:
    11
    Likes Received:
    0
    Robots.txt is fine to de-index unwanted pages from your domain. Allow it some time to take effect.
     
  5. Scripteen

    Scripteen Elite Member

    Joined:
    Sep 19, 2009
    Messages:
    1,810
    Likes Received:
    1,919
    Home Page:
    If the page is already removed then .htaccess file wont help and it's just some time till Google removes it form the index and you don't need to do anything.