Most webmasters have a certain schedule that they follow when it comes to recurring tasks like moderating blog comments, writing new content or managing the SEO side of the website. Broken links should be part of this regular schedule, they are however often overlooked by webmasters.
A broken link in this context means a link to a page that does not exist (anymore) on the website. The website usually responds with a 404 error page in this case.
Every link is a vote for that website and every webmaster should make sure that all the links pointing to the website are put to good use. Bad links can hurt a website’s rankings and reputation.
This article is a basic how to that will explain the following concepts:
How to display all broken links that point to a website
The answer in this case is Google Webmaster Tools. Webmasters need a Google account and a verified site to see the broken links that point to their domains and websites. The data is populated over time and it is a good idea to visit the section regularly to react whenever new broken links pop up.
Do the following after you have logged into Google Webmaster Tools. Access the registered domain, click on Diagnostics in the left sidebar and then on Crawl Errors. Crawl errors displays all kind of errors and restrictions, the data that is important when it comes to broken links is under the Not Found tab. If you see no crawl errors there congratulations, everyone else might want to read on.
The not found links are links on the domain the webmaster selected in Google Webmaster Tools. Each row displays the link url that websites link to, the detail (error code), number of pages that use that link and the date it was last checked by Google.
Redirect broken links with htaccess.
Please note that this article is not about explaining what htacess does. Before you start you should ensure that your web server supports htaccess. If you are unsure ask your web hoster or server administrator.
The .htaccess is usually located in the root directory of the website. It is possible that other htaccess files exist in subdirectories. It is basically a text file with directives for the web server.
The basic command to redirect link is
Redirect permanent localurl newurl
or
Redirect 301 localurl newurl
All that needs to be done is to basically add the urls from the not found section of Google Webmaster tools in the localurl section and the newurl that the link should now point to in the newurl section.
Please note that the localurl begins with a / and not with http://www.yourdomain.com/. A valid redirection of a link pointing to http://www.yourdomain.com/brokenpage.html would look like the following:
Redirect 301 /brokenpage.html http://www.yourdomain.com/validpage.html
This tells the search engines that the location of brokenpage.html has been permanently changed to validpage.html. The 301 redirect ensures that the linking power is attributed to validpage.html now.
We need to address a special case, pages with blank spaces. The localurl needs to be enclosed in “” if it contains a space. A broken link to http://www.example.com/broken directory/ needs to be redirected this way:
Redirect 301 "/broken directory/" http://www.yourdomain.com/validdirectory/
There is another question that needs to be answered: How do you decided where to link to? The best practice is to link to the right page on the website if the link has been misspelled. This should also be done if it is possible to guess where the link should be leading to. But there are cases where a link points to a no longer existing page.
You can either redirect to the homepage of the site, a special “broken link” page that explains why the visitor landed on that page or the closest alternative.
How do you handle broken links on your domains and websites?
2 Responses
kate broadhurst
June 21st, 2011 at 7:53 pm
1Can you help us with this?
In our ‘places page’ the third-party link to Tripadvisor has been broken and we have a link to spurious ‘travel pod’ page (not ours) where we don’t have any reviews. Google says ‘the automatic data-link is broken and there is nothing they can do. It might refresh over time.’
Without any links to our reviews showing on the search results or places pages, we are not getting any guests at all. The competition still has their reviews showing. This is very very serious as our 58 fantastic tripadvisor reviews (that we have earned over 6 years and we are in top spot) are the primary reason people come here. For the first time in ever we don’t have advance bookings. This is killing our business.
Huskisson Bed and Breakfast
We are Bed and Breakfast Accommodation in Huskisson,Jervis Bay, NSW Australia
The link to our review is below.
http://www.tripadvisor.com.au/ShowUserReviews-g528968-d786182-r112145160-Huskisson_Bed_and_Breakfast-Huskisson_New_South_Wales.html
iceflatline
August 5th, 2011 at 5:55 pm
2Martin, thank you for this post. I had been struggling with a broken link to one of my posts. The need for quotations around the broken link somehow evaded me. Thanks again.
RSS feed for comments on this post · TrackBack URI
Leave a reply
RSS Feed
Email Feed
Categories
Archives
Links
Meta
Calendar