WordPress.org

Forums

get rid of brokrn links (2 posts)

  1. ajay423
    Member
    Posted 2 years ago #

    Hi
    I have few post url's, i dont want google to crawl those url's which resulted in broken links.
    Please suggest a solution.

    I thought of 301 redirects, is it a best and last solution

  2. Greg Stewart
    Moderator
    Posted 2 years ago #

    You just want to prevent the pages from being picked up by search engines? A simple robots.txt in the root directory should take care of that:

    User-agent: *
    Disallow:
    Disallow: /path/to/file.html
    Disallow: /wordpress/2013/04/02/broken-links/

    Why not just fix the broken links, or am I misunderstanding something?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.