Wednesday, August 10, 2011

How to remove broken links from your blog

When you write a post and links to various articles that may be of interest to your readers, do not expect that these links can change direction any day, or worse, be taken off the air. But believe me, they will.


And a broken link can be very frustrating to the reader who needed that information. Bad for the reader and equally bad for Google: Did you know that broken links can negatively affect the rankeamento a page?

Removing broken links
Remove these broken links manually is an impossible task. Further in a blog on the size of TB that already has more than 7,000 published posts. So I was forced to seek an automated solution and found this a plugin for WordPress.

The Broken Link Checker scans all the blog posts in search of internal and external links. Then it hits each link and check HTTP status link, creating a list that separates broken links and links that are redirecting to other pages.


List of broken links in posts Tecnoblog
Before you give link by link, the plugin has scored all with rel = nofollow, an indication for the search robots to ignore that link. You can also put a different color on these links, so that the reader understands from the start that he's having problems. I like the standard solution of the plugin -> put a risk on the link.

Note that the image is easier to have the plugin to remove all the broken links at once, but this process is extremely heavy, since the script needs to access all the posts, remove link by link and save the changes. Try running this command in small groups of links and gradually increase, or you run the risk of knocking down your server (this is the script execution is not interrupted by the system).

Links that redirect to another address
Imagine that you create a link that pointed to a page on acceleration of protons and a few months later the owner of that page redirect url resolves to a page with "Pictures of Sandy nude naked and without taking panties wanton and saying that anal is something serious" .

Cool huh, champs?

It may happen that your reader to like this more than the other page you had linked, but who certainly will not like this redirection is Google.

On the report page of the Broken Link Checker you can also find a list of links that have been redirected to other pages. There will need to check and decide what to do with them, the same pattern of broken links.


It was well that I had linked ...
This feature is also very useful if you changed the URL of any blog post. Using the search field gives to create a filter and see only internal links. The plugin itself can correct the redirect urls for certain.

Goodbye broken links and redirects - big G and his readers will thank you.