Google listing "feed" urls instead of actual posts in serps

Discussion in 'WordPress' started by steamer, May 9, 2006.

  1. #1
    Google keeps listing my wp feed url instead before my actual content page.

    For example:

    www.site.com/car/2006/the-content-page/feed/

    instead of..

    www.site.com/car/2006/the-content-page/


    How do i block google from indexing feed pages?
     
    steamer, May 9, 2006 IP
  2. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #2
    sketch, May 10, 2006 IP
  3. steamer

    steamer Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the reply. I dont think that will work as the directory name i wish to block is at the end of the url. If it were www. site.com/feed/car/2006/the-content-page/ i could have blocked it via robots.txt.
     
    steamer, May 10, 2006 IP
  4. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #4
    You can block any conceivable URL, you just have to know the syntax. My robots.txt blocks any URL with the word "feed" at the end of the URL. Google for "robots.txt" and you'll find what you need, I guarantee it.
     
    sketch, May 12, 2006 IP
  5. blueoceanwave

    blueoceanwave Peon

    Messages:
    210
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Somebody should create a wordpress plugin for this
     
    blueoceanwave, May 12, 2006 IP
  6. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #6
    There's no need for a plugin, you either use the robots.txt file or you edit your template to add rel="nofollow" to the code that displays the feed link. That's it.
     
    sketch, May 15, 2006 IP
  7. steamer

    steamer Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    which template?
     
    steamer, May 16, 2006 IP
  8. MrSupplier

    MrSupplier Peon

    Messages:
    141
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    needs to hack wp code tho' :(
    some stuff in header.php
    but rss links are generated from wp function
    look for feed related functions and change anchor code there
     
    MrSupplier, May 17, 2006 IP
  9. steamer

    steamer Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yup got it thanx.
     
    steamer, May 17, 2006 IP
  10. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #10
    This is why I prefer the robots.txt method, so I don't have to hack any code in WP.
     
    sketch, May 20, 2006 IP
  11. MrSupplier

    MrSupplier Peon

    Messages:
    141
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    mod rewrite can be used to redirect feed requests with google search referrers to actual site
     
    MrSupplier, May 20, 2006 IP