Contents of Post
- 1 What is Broken Link in website? How to Fix Broken links for Websites and Blogs
- 1.0.1 What is Broken Link ?
- 1.0.2 Broken Links and SEO
- 1.0.3 Broken Links Detection
- 1.0.4 How to Avoid Broken Links
- 1.0.5 How to Fix Broken Links
- 1.0.6 Creating a 301 Redirect File
- 1.0.7 Updating The 301 Redirects Via .htaccess Access
- 1.0.8 Did You Like This Please Share With others
- 1.0.9 Related
As a Blogger we have all experienced the broken links issue with website and blogs. Broken links are links that don’t work. Some of the reasons why links don’t work include:
- A website is no longer available
- A webpage was moved without a redirect being added
The URL structure of a website was changed you click on the link and immediately get taken to a dead end. This is commonly called a 404 error or also called a broken link.
What is Broken Link ?
A broken link is quite simply a link on a web site that no longer works because the website is experiencing one or more of the following issues:
- The destination web page has been moved or no longer exists.
- An invalid URL has been entered for the link by the web page owner.
- The linked web page has been removed from the web site.
- An improper URL entered for the link by the website owner.
- The destination website removed the linked web page (causing what is known as a 404 error)
- The user has software or is behind a firewall that blocks access to the destination website.
- The website owner linked to a site that is behind a firewall that does not allow outside access (such as an Intranet site or a restricted access area on a website).
Broken links can be problematic for website visitors, making them unable to access the desired resource or information. These users may decide to make use of another site to find the necessary information elsewhere. A site that hasn’t been updated or checked for a long time may suffer from link rot, which is a term used to describe a site with dozens of broken links.
Though Google tells us that 404 errors may not hurt your SEO, the broken links could hurt your user’s experience on your website and cause higher bounce rates.
In this post we will learn how to Detect, Avoid, and Fix those annoying 404 errors on your site so that you may keep your visitors on your site longer and more engaged.
Broken Links and SEO
Search engines see links as a vote for a website’s quality. Links to your website and links within your website can affect where your website ranks in search results. Because of this, its best practice to either remove or update broken links.
Cleaning up broken links can add context to your website, improve user experience, and make content within your website easier for visitors and search engines to discover. On the other hand, websites with too many broken links can be a signal of low quality to search engines.
Broken Links Detection
There are many plugins and software available that allow you to search for 404 errors and broken links.
The best method we recommend for detecting broken links on your website is through the use of Google Search Console.
To perform this simple task you should:
- Sign into your Google account that is linked to your website.
- Navigate to Google Search Console
- Click on your account
- On the sidebar to the left, go to the drop down menu labeled “Crawl”
- Click on “Crawl Errors”
- Click on the link and you’ll be able to view detailed information about that broken link.
How to Avoid Broken Links
You can avoid and prevent unwanted 404 error messages. Instead of deleting pages with old information, consider refreshing and updating your content.
How to Fix Broken Links
One of the most common and easiest methods of correcting broken links on your website is by way of creating 301 Redirects through .htaccess Access in your direct admin access page.
Creating a 301 Redirect File
The syntax for creating the 301 redirect file will look like this:
Redirect 301 /landing-page-2 http://www.yourdomain.com/landing-page-1
- /landing-page-2 is everything behind the forward slash after your domain name
- The second half is the FULL url of the new page where the link would be directed to.
Updating The 301 Redirects Via .htaccess Access
Editing the .htaccess Access File can be simple but may also be very dangerous if you are not familiar with the process. We do want to give the warning that one missing character could crash your entire website. It is highly recommended that you copy the entire file and paste it into notepad so that you have a back-up in the case you break your website.
- Login into your direct admin access page.
- Go to File Manager
- Open the public_html folder
- In the account settings, make sure that show hidden files is checked.
- Click on the edit button to edit the .htaccess Access file.
- Insert in the 301 redirect
- Press save
- Click on the old broken link and ensure that it is going to the new destination.