URL Article ID

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Dec 01, 2011 6:18 pm

URL Article ID

Post by DaveSkye » Mon Dec 10, 2012 7:03 pm


I have activate the "Search Engine Friendly URLs" - but would like to remove the Article ID's from the URL - any idea's?

User avatar
I've been banned!
Posts: 38
Joined: Wed Oct 10, 2012 3:22 pm

Re: URL Article ID

Post by hoangbdshcm » Fri Dec 14, 2012 5:30 pm

First you change .htaccess to htaccess.txt and you use plugin HP Router takes the URLs of the core of Joomla! and removes the IDs from the non-menu parts. You can now create URLs without disturbing numbers in them and it even helps with duplicate content in some special cases. It implements some improvements in the URLs, too.
How to install? Just download and install like any other plugin.
ATTENTION!! There are a few things you have to keep in mind with this plugin:

You can't have the same alias for two articles, even though they are in different categories. To be precise, you can't have the same alias for any type of content item. As a rule of thumb: If you can get to the list of this type of content items from the administrator menu, you can't use the same alias on two items in that list.
This only works for the core components. Third party components need to either provide another router that could be saved in the folder of the plugin or they have this "correct" from the start without Numbers in the URLs.
There is a slight performance decrease through this, since it adds another query and some code. This performance decrease is most likely purely academic, but if you have issues after installing this plugin, disable it. If you are already having problems with your performance, installing this plugin will not help.

How to prevent duplicate content with this plugin? Many people create a section view as a menu item and then create additional menu items to category views inside that section. They often enough name the menu item and the category the same way. Earlier, through the ID in the URL, the URLs from inside the section view to the category were different from the URLs using the menu link. With this plugin, when the two aliases are identical (the one in the menu item and the one in the category), Joomla will generate the same URLs in the section view and the menu. However, you have to notice that a menu item will always have precedence over a category. So if you have a different set of modules assigned to the category menu item and you are clicking on a link inside a section view, you will get the assigned modules from the category menu item
This is version 0.3 of this plugin with the bugs mentioned on the JED fixed.

Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Jan 23, 2013 9:46 am

Re: URL Article ID

Post by design92 » Sun Jan 27, 2013 11:39 am

No need to use anything 3rd Party Plugins. Just go to the following site and they will provide the code needed for your .htaccess file

http://www.hyde-design.co.uk/joomla-tra ... -redirects

User avatar
Joomla! Intern
Joomla! Intern
Posts: 77
Joined: Wed Jan 19, 2011 4:59 am
Location: Olinda, Victoria, Australia

Re: URL Article ID

Post by MaxLynam » Tue Jan 29, 2013 3:43 pm

Having menu items to the articles/category will definitely help ... directions above are only for SEF urls generally, does not solve the ID issue.

I prefer MijoSEF as a "cure-all" plug-in to optimise sites and SEF URLs ... also removes the IDs. It is not quite J3 ready yet ... very soon I hope - it is in Beta. Keep a check on the Mijosoft website (support > compatibility) or sign up to their newsletter/twitter and should be out soon :pop
Max Lynam @MaxOnTheHill | Olinda, Melbourne, Australia | Joomla since 2005
Digital Marketing Consultant & Bootstrapped Website Builder - sitedev since 1993
{ http://www.maxlynam.com } { http://www.molehill.com.au }



Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”