Joomla 3: Remove Article ID From URL / Links

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

Who does not love great looking URLs and easy to read links. In Joomla 3 we have the ability to make your URLs look more friendly and easy to understand. While we crave to make them easy and more readable by tweaking some options in the backend, we might still end up with article ID’s inside the URLs.

How are we going to manage that Ids and make them disappear from the URLs?. Well, you don't have to worry about it because there is an easy way to handle it.

All you have to do is follow some steps mentioned below and you should be completely free from those IDS inside the URL of your Joomla and make URLs look great, friendly and more readable.

Required

You’ll need to have access to the Joomla Core Files usually found through file manager from cPanel of your website. If you do not have access to the files, you may gain it by installing this great little extension Extplorer to access the files right from your Joomla Administration.

Very Important: Before you follow the resolution below, ensure to backup your site. One Click Backup for Joomla

Resolution

Once you have access to the core files of your Joomla, follow the steps below:

  • Navigate to components/com_content/
  • Look for router.php file and make an offline copy of it in case of mishap.
  • Now Edit this file and look for:

$advanced = $params->get('sef_advanced_link', 0);

  • Replace it with the following:

$advanced = $params->get('sef_advanced_link', 1);

You may come across 2 occurances of this line, replace both.

Applicable to: Joomla 3.x.x (Tested it over Joomla 3.1.x and Joomla 3.2.x).

If you face any difficulty while deploying this fix, drop me a line and I will be happy to help you. Did you find it helpful? Drop a line and share it forward to help others. Have a nice day.

About the Author
Syed Hussaini
Author: Syed HussainiEmail: This email address is being protected from spambots. You need JavaScript enabled to view it.
Web Developer & Consultant
Brief Bio
With over 12+ Years of experience, he holds a great knowledge of variety of applications and business practices besides Web Analytics, Web Development on CMS & Web Technologies, eLearning Solutions such as Adobe Captivate and Camtasia.