Making Joomla site SEO friendly by removing ID from URLs - JoomShaper

Making Joomla site SEO friendly by removing ID from URLs

23 June 2018
Hits 18,650
2 min read
Making Joomla site SEO friendly by removing ID from URLs

Before we begin, let's have a brief look at the URL variations of Joomla.

The evaluation of Joomla URL
The ancient one:
www.example.com/index.php/category-alias/123-article-alias

The customized one:
www.example.com/category-alias/123-article-alias

The modern one (after customization):
www.example.com/category-alias/article-alias

The difference among all those three versions of URLs is pretty visible. The first one (as I’m calling it the ancient one) is not user-friendly at all. It has an extra index.php and a random number (ID) in the middle of the URL. That makes it non-readable and people are very likely to forget them.

You’ll get the ancient one right after you install Joomla. If you want to get the customized one (removing index.php from URLs), I’d suggest you have a look at this article which explains how to do so with a very simple step by step guideline. And, today’s article will show you how to remove ID from URLs in Joomla.

Let's go through the step by step guideline

Step 1

We need to log into the Joomla admin area of our website then go to System > Global Configuration.

Making Joomla SEO friendly URL by removing ID

Step 2

Now select “Articles” from the left sidebar.

Making Joomla SEO friendly URL by removing ID

Step 3

Navigate to the “Integration” tab of Articles configuration.

Making Joomla SEO friendly URL by removing ID

Step 4

We will change the “URL Routing” option. The following screenshot shows the default settings. 

Making Joomla SEO friendly URL by removing ID

Step 5

This is the step where we’ll do the actual work. We need to change “URL Routing” from “Legacy” to “Modern”. Doing so will open up a new option “Remove IDs from URLs”, we need to set it to “Yes”.

Making Joomla SEO friendly URL by removing ID

Yes, we’re done here. You need to hit “Save” or “Save & Close” before you can see the result.

This URL Routing feature can be enabled for few other components. The above process was shown for Article component. If you want to enable URL Routing for other components like contacts, news feeds, and users you can do so as well. The process is pretty much same. But hey, if you face any difficulties just comment below. We are always here to help. Thanks for being with JoomShaper. 

Previous Step: The most crucial step to make your Joomla site SEO friendly.

Comments (32)

C
Chris
This comment was minimized by the moderator on the site

Does this work, or can it be made to work for categories as well? I see this issue with J2Store when you use their own internal filter/category side bar, as these link to category IDs which is a bit poor for SEO.

Saifur Rahman
Saifur Rahman    Chris
This comment was minimized by the moderator on the site

I would recommend you to contact with j2store they'll be able to answer your question properly.
- Thanks

Numair Sheikh
Numair Sheikh
This comment was minimized by the moderator on the site

Hey, Good information provider thank you, I think it's all about URL structure those URL has their id's and numbers also special character like "?" that all are count as not friendly URL. If we will use proper text-based URL so it's count as Google Friendly URL and it affected on Google search results. It plays a main role in website ranking.

HG
Harman Gomez
This comment was minimized by the moderator on the site

This is just awesome.
Great news.

Saifur Rahman
Saifur Rahman    Harman Gomez
This comment was minimized by the moderator on the site

Thank you

RD
Radar Detector
This comment was minimized by the moderator on the site

Nice article.Thank You

novingate
novingate
This comment was minimized by the moderator on the site

good luck

Emmanuel Antigha
Emmanuel Antigha
This comment was minimized by the moderator on the site

Good evening sir thank you for the article....These are what I experience after following the procedure to implement it on my live site http://www.webtarget.com.ng. All the 6 featured articles display this error while loading

"Warning: require_once(/home/webtarge/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /home/webtarge/public_html/templates/shaper_university/error.php on line 27

Fatal error: require_once(): Failed opening required '/home/webtarge/public_html/libraries/joomla/document/html/renderer/head.php'...

Good evening sir thank you for the article....These are what I experience after following the procedure to implement it on my live site http://www.webtarget.com.ng. All the 6 featured articles display this error while loading

"Warning: require_once(/home/webtarge/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /home/webtarge/public_html/templates/shaper_university/error.php on line 27

Fatal error: require_once(): Failed opening required '/home/webtarge/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/opt/php54/lib/php') in /home/webtarge/public_html/templates/shaper_university/error.php on line 27"

So i went back and undid the setting and jet no different please help me. Am so afraid right now because i have lot of visitor on the site.

Read More
Paul Frankowski
Paul Frankowski    Emmanuel Antigha
This comment was minimized by the moderator on the site

You have template based on Helix II ?
Have you updated template Helix framework to last stable version (2.5) ? If you do not know how, please just install template: https://www.joomshaper.com/joomla-templates/helix-ii
it will update all elements. And in theory should help.

Paul Frankowski
Paul Frankowski    Paul Frankowski
This comment was minimized by the moderator on the site

In general we suggest o create a new forum topic, comment section is not perfect place for support.

JS
Jordan Skerda
This comment was minimized by the moderator on the site

I followed these instructions, but my "Sign Up" page is still displaying the ID, even after deleting and creating a new one.

Does it have to be placed inside a category first to work?

Saifur Rahman
Saifur Rahman    Jordan Skerda
This comment was minimized by the moderator on the site

Hi Jordan,

The only reason I can see it's not working is because you probably forget to add the "Sign Up" page to the menu. Here take a look at this screenshot. http://prntscr.com/kxxcjn

Thanks

JS
Jordan Skerda    Saifur Rahman
This comment was minimized by the moderator on the site

You are a magician as usual! Thank you

Saifur Rahman
Saifur Rahman    Jordan Skerda
This comment was minimized by the moderator on the site

LOL. You're welcome.

H
Herb
This comment was minimized by the moderator on the site

one question,
If i remove the id from the url site wide. Will i have to make redirects for every single page or will seo transfer automatically.
http://example.com/111try
http://example.com/try
will i need redirect or will the seo already created for /111try automatically transfer to try?

Saifur Rahman
Saifur Rahman    Herb
This comment was minimized by the moderator on the site

The URL would be changed automatically.

P
pawan
This comment was minimized by the moderator on the site

hi.
I have change all the settings. but it does not work for me. when i change the settings it shows the urls like
http://www.sitename.com/?view=article&;id=1:aloo-gobi&catid=8
please help me

Saifur Rahman
Saifur Rahman    pawan
This comment was minimized by the moderator on the site

As far I guess, the issue is related to .htaccess. Please follow this article for a detailed guideline - SOLUTION ARTICLE link. Don't forget to let us know if it worked for you.

M
Mike    Saifur Rahman
This comment was minimized by the moderator on the site

Hi, I have this very same problem with my Joomla website. Everything is up to date and I had already modified the name of my htaccess file to remove index.php from my url. Do you have any further ideas on what I can try? I am using Dreamhost, with Helix Ultimate.

Saifur Rahman
Saifur Rahman    Mike
This comment was minimized by the moderator on the site

Hi Mike,

It is required to look into your website configuration in order to know what's causing this. You can reach out to our forum or directly ping Toufiq our star support engineer.

M
Manjeet
This comment was minimized by the moderator on the site

I have a strange issue in my site.

I created a thank you page, but unfortunatily this isn't opening using alias, but if I use non seo friendly link - http://prntscr.com/n2kv2h

This is opening fine.

what I am missing ?

FYI Whole website is already set to SEO friendly and working fine.

anybody can help ?

Paul Frankowski
Paul Frankowski    Manjeet
This comment was minimized by the moderator on the site

Make sure that in your contact component or module, with redirection option, you used a proper link. For this kind of questions please use forum.joomla.org. We can help mostly our customers.

M
Mateusz
This comment was minimized by the moderator on the site

Hi

Thank you for a good solution. But there is some issue - I have done all step by step, but old URLs are not redirected. I got plenty of URLs in social media, etc. and want to keep them working. Now old URLs points to 404. Could you please advise how can I fix this issue and keep all old links working and redirecting from "xxx-urladdress" to "urladdress" automatically?

Best Greetings,
HX

Saifur Rahman
Saifur Rahman    Mateusz
This comment was minimized by the moderator on the site

Sorry for the delay Mateusz. Yes, there is a solution and it's pretty easy. There is a default Joomla Plugin for that, when enabled it redirects your old URLs to the new ones. Here's how you should solve the issue:

Step 1: Navigate to Joomla backend > Extensions > Plugins > find and enable "System - Redirect"
Step 2: Go to Joomla backend > Components > Redirect. (when this plugin is enabled it collects all the expired URL hits.)
Step 3: Now you need to list your old URLs and insert the new ones in their place. To do that click "New"
Step 4: You'll be presented with this screen https://prn...

Sorry for the delay Mateusz. Yes, there is a solution and it's pretty easy. There is a default Joomla Plugin for that, when enabled it redirects your old URLs to the new ones. Here's how you should solve the issue:

Step 1: Navigate to Joomla backend > Extensions > Plugins > find and enable "System - Redirect"
Step 2: Go to Joomla backend > Components > Redirect. (when this plugin is enabled it collects all the expired URL hits.)
Step 3: Now you need to list your old URLs and insert the new ones in their place. To do that click "New"
Step 4: You'll be presented with this screen https://prnt.sc/qfvc3a ; enter your expired URL along with the new link.
Step 5: Repeat this process for all the expired URLs.

This should solve your issue.

Thanks,
Saif

Read More
Saifur Rahman
Saifur Rahman    Mateusz
This comment was minimized by the moderator on the site

For better understanding the process, please refer to this extensive tutorial.

senolsengul
senolsengul    Saifur Rahman
This comment was minimized by the moderator on the site

Hello,
There are about five hundred links on our website

I think removing the ID numbers is it positive or negative?

I am asking this because we have a lot of links because I think it is necessary to redirect all

senolsengul
senolsengul
This comment was minimized by the moderator on the site

Hello,
There are about five hundred links on our website

I think removing the ID numbers is it positive or negative?

I am asking this because we have a lot of links because I think it is necessary to redirect all

Saifur Rahman
Saifur Rahman    senolsengul
This comment was minimized by the moderator on the site

Hi senolsengul,

Removing IDs from URLs is always a good thing. However, since you have a ton of URLs. The call is yours. If you remove IDs from URLs you'll need to manually redirect them to the new links. That will require a lot of resources (time). You can have a look at this article for a proper guideline.

senolsengul
senolsengul    Saifur Rahman
This comment was minimized by the moderator on the site

Thank you

This process is going to mess me up a bit

Saifur Rahman
Saifur Rahman    senolsengul
This comment was minimized by the moderator on the site

Hehe, good luck :-D

Hamed
Hamed
This comment was minimized by the moderator on the site

hi

My joomla version is: 3.9.15

This function (Integration) dont work correct.

Seo setting for mod_rewrite and rename htaccess is activated.

Saifur Rahman
Saifur Rahman    Hamed
This comment was minimized by the moderator on the site

Hi Hamed, kindly make sure you have completed all the steps from this blog post before making changes to the functions.

There are no comments posted here yet

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.