Google index wordpress media files - how to avoid ?

 

Results 1 to 3 of 3
For each media file (images) i upload WP creates subpages in my blog with just ...
  1. #1
    danhoff is offline Power Member
    Join Date
    May 2010
    Posts
    700
    Thanks
    89
    Thanked 43 Times in 37 Posts

    Default Google index wordpress media files - how to avoid ?

    For each media file (images) i upload WP creates subpages in my blog with just the image displayed. I think it's bad for my rankings, since there is no real content. How can i switch this off ?




  2. #2
    Kazi_Haque's Avatar
    Kazi_Haque is offline Regular Member
    Join Date
    Aug 2010
    Location
    Melbourne, Australia
    Posts
    327
    Thanks
    71
    Thanked 418 Times in 57 Posts

    Default Re: Google index wordpress media files - how to avoid ?

    Use Robots.txt file.

    Disallow: /wp-content/uploads/

    By the way, it doesn't effect for rankings.

  3. #3
    g0g0l's Avatar
    g0g0l is offline bit.ly/25kCVs
    Join Date
    Sep 2010
    Posts
    2,593
    Thanks
    4,366
    Thanked 2,379 Times in 1,271 Posts
    Blog Entries
    3

    Default Re: Google index wordpress media files - how to avoid ?

    Either simply delete your attachment.php file OR
    Add this to the top of your header file (haven't tested this. try and let me know):


    Code:
    if(is_attachment()) 
          header("HTTP/1.0 404 Not Found");
    Beware!! Your attachment won't show anymore..


Similar Threads

  1. A german wordpress site in Google Index
    By Jodimaster in forum Black Hat SEO
    Replies: 3
    Last Post: 11-05-2012, 03:42 PM
  2. Google doesn't index my new posts (Wordpress)
    By Envyliciouz in forum Blogging
    Replies: 10
    Last Post: 02-14-2012, 03:35 AM
  3. Replies: 17
    Last Post: 12-28-2011, 02:45 AM
  4. Replies: 7
    Last Post: 05-05-2011, 03:38 AM
  5. Can Google Index XHTML Files?
    By darkknight1947 in forum Black Hat SEO
    Replies: 1
    Last Post: 06-22-2009, 08:10 AM

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
  •  




BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108