Let us see how to remove Article ID From URL or Links under Joomla. 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.
Before you follow the resolution below, ensure to backup your site. One Click Backup for Joomla.
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.
In the steps outlined below, we will be creating a new option that will show up under Articles Manager options allowing us to simply Enable or Disable IDs. Since the launch of Joomla 3.8.x The new routing system has been introduced to address this problem of removing article IDS from the URL of the Joomla website. If you have a website with his on Joomla 3.8.x and above, please follow the instructions in section 1 below. For anyone who has older versions, please follow the instructions in section 2 of this article.
Joomla 3: Remove Article ID From URL / Links: Section 1
Open your Joomla administration console and click on content > articles and select options displayed on the top right side (refer to the image below).
Now select Integration Tab under the article options.
Now click on Modern under URL Routing and click Remove IDs from URLs.
Finally, click on Save & Close button.
This should be all, now view your article. to ensure the IDs are removed. In case you still do not see the changes, consider clearing the cache of Joomla. Options to clear Joomla cache can be found under system menu of your Joomla administration panel. Consider clearing the expired cache as well as the regular cache.
Applies to Joomla 3.8.x and above (Tested it over Joomla 3.8.x)
Joomla 3: Remove Article ID From URL / Links: Section 2
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.
Once you have access to the core files of your Joomla, follow the steps below:
- Navigate to administrator/components/com_content/
- Look for config.xml file and make an offline copy of it in the case of a mishap.
- Now add the following code in this file right below <config> Tag:
<field name="sef_advanced_link" type="radio" default="0" label="SEF Advanced Mode" description="Remove ItemID (Article ID) from Content/Article URL?"> <option value="0">JNO</option> <option value="1">JYES</option> </field>
- Now save the file and navigate to website Admin console
- Go to Content > Articles and select Options
- Now under Articles Tab, you should have an option to SEF Advanced Mode
- Set this to Yes and click Save and Close
- Visit the front end to confirm the output.
Applies to Joomla 3.x.x (Tested it over Joomla 3.1.x and Joomla 3.2.x and 3.7.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.