How to Fix Broken Links on Joomla - JoomShaper

How to Fix Broken Links on Joomla

06 February 2020
Hits 12,176
4 min read
How to Fix Broken Links on Joomla

Oopsie! I got a 404 on a website. It happens all the time. But what if it happens on your site, to your users? What do you do then? How to fix a broken link on Joomla sites? Embrace yourself, it’s not gonna be a long night. We will win this war by fighting just 3 battles (steps). It’s incredibly easy! So, without further ado, let’s get down to business.

How to Fix Broken Links on Joomla

How to Fix Broken Links on Joomla (Step by Step)

You need to have a live website. Like, obviously! Or else why would you even read this post! Anyhow, assuming you have a live website, we’ll go ahead and fix the broken links. So, you need to login to your site. 

Step 1: Enabling Redirect Plugin

The first thing to do in this process is to make our battlefield ready. To do that, we need to enable the Redirect plugin. That’s the only firepower we need to win this battle. We can enable it by either going to Extensions > Plugins > search for “Redirect” and hit “Publish” when you find it. 

How to Fix Broken Links on Joomla

Or, you could just go to the Redirect component area of your website. By going to Joomla backend > Components > Redirect.

How to Fix Broken Links on Joomla

This will take you to the Redirect panel of your website where you’ll find an error message saying the plugin is not activated. 

How to Fix Broken Links on Joomla

Just click on the plugin name and the following window will popup. 

How to Fix Broken Links on Joomla

You only need to do 2 things, change the status to “Enabled” and hit “Save & Close”. 

Step 2: Collecting Broken Links

Once you have enabled the Redirect plugin, you’ll find there’s no more error message rather, showing the “Collect URL” option is enabled.

How to Fix Broken Links on Joomla

When you enable the Redirect plugin this feature is enabled by default. It is the greatest spyware that will keep watch on your website 24x7x365. Whenever anyone enters a wrong URL or somehow a good URL becomes broken link overnight. This is plugin will log everything. 

The redirect plugin will log every single 404 error ever raised on your website 24x7x365!

You don’t have to do anything, just sit and wait. Come back after a day or two and you’ll find a list of broken links just lying around. Wait! Don’t worry. We know how to fix this. 

Step 3: Repairing Broken Links

Well, it’s the easiest part of this process. Just simply click on any link from the list. 

How to Fix Broken Links on Joomla

Once you do that, you’ll find the following window popping up. 

How to Fix Broken Links on Joomla

You just need to do 2 things here. Put in the valid URL in the “New URL” field and change the status to “Enabled”. 

Voila, you’re done! Now even if someone puts the wrong URL and hits enter. They will be redirected to the new page. If our case if anybody types in https://helix-framework.org/gallerydsid they will now be redirected to the actual Gallary page and instead of seeing a 404 message they will have this.

How to Fix Broken Links on Joomla

Repeat this process until you finish fixing all the necessary broken links. Once you have successfully done that, it will look like the following.

How to Fix Broken Links on Joomla

How to Replace Old URLs in Joomla?

Say, you’ve made your Joomla site SEO friendly, after running it for a while. Or you just removed IDs from all URLs. So, now you have a ton of URLs on your website generating traffic. But since the links became expired, you’re losing all of them then what do you do?

Simple! Just click on the green “New” button at the top, and you’ll have the following screen. 

How to Fix Broken Links on Joomla

Put in the old link in the “Expired URL”, then enter the new updated link in the “New URL” field. Then hit “Save & Close” once you are done. 

Living Happily Ever After

Yeap, we did it! After fighting 3 tireless battles, we have finally won! We’ll never have any more 404 errors on Joomla sites from now on! Well done comrades, now you can chill and live happily ever after. You earned it. Until we meet again. Peace out! 

If you didn’t know how to fix broken links on Joomla, now you know. What would you like to know next? Put your thoughts in the comments below and let us indulge your curiosity. 

Good Read: Making Joomla site SEO friendly by removing ID from URLs.

Ali
Ali
4 years ago
Спасибо за статью было интересно!

Google Translite

Thanks for the article it was interesting
Saifur Rahman
Saifur Rahman
4 years ago
Спасибо за добрые слова.

Google Translate

Thanks for your kind words.
Mo Ahmed
Mo Ahmed
4 years ago
What you may need to do is also exclude specific 404's when you enable the redirect plugin, or you could face a very bloated database. Just as the author said, it captures *every* 404. Your website encounters random requests by bots. If you don't have Joomla set to log these, you may never notice it.

Using Joomla, often you will find a tonne of people trying to access WordPress-centric URLs, like /wp-admin, or various types of config/backup/bitcoin addresses.

To exclude URLs that you may see appear regularly on your redirect list, go to Extensions -> Plugins -> [System - Redirect].

There you will see the option to exclude URLs. Add what you need. It works by wildcard by default, e.g. typing "admin" will be *admin*, or you can use RegEx.

I tend to do this by default excluding the terms mentioned and a few others;

[list]
[*]install
[*]wp
[*].js / .css (I use this because I use tools like JCH which creates a bunch of .css files
[*].git
[*]backup
{*]conf
[/list]

That will capture most malicious 404's. I don't have URLs containing any of these due to the nature of the websites I manage. Of course, if you're running a technically-orientated site, you may want to keep some of these terms included.
Saifur Rahman
Saifur Rahman
4 years ago
Thanks for your input, Mohammed Ahmed. Yes, it's a very handy feature. Concerned individuals should read this comment.
T
Ton
4 years ago
Nice article Saifur :-)
Thanks!
Saifur Rahman
Saifur Rahman
4 years ago
Thanks for the appreciation Ton. It means a lot.
RR
Ricardo Retuerto
4 years ago
Interesting basic things that many people skip (as me, sometimes)
Thanks for the short and nicely shown reminder
Saifur Rahman
Saifur Rahman
4 years ago
Glad I could help.
Tim Schmitz
Tim Schmitz
4 years ago
Great Article! Working with Joomla for years and did not know that feature. Always installed a third party plugin for redirecting dead links. Thanks a lot!
Saifur Rahman
Saifur Rahman
4 years ago
Haha, I know. It happens sometimes. But hey, now you know :-)
A
aajkinews
4 years ago
I personally like the information which you have provided in this blog, thanks for helping.
A
aliza
4 years ago
Thank you for sharing this valuable information with the users...
A
aliza
4 years ago
[quote]Thank you for sharing this valuable information with the users.. [/quote]

Sign up for our newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.