Advertisement
Remove article id from url for joomla 3.0
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.
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! Fledgling
- Posts: 3
- Joined: Tue Nov 12, 2013 7:46 am
Remove article id from url for joomla 3.0
Hi,
i want to remove article id from url, how it can be possible in joomla 3.0
Any one knows about it please tell me
Thanks.
i want to remove article id from url, how it can be possible in joomla 3.0
Any one knows about it please tell me
Thanks.
Advertisement
-
- Joomla! Intern
- Posts: 50
- Joined: Sun Aug 04, 2013 11:41 am
Re: Remove article id from url for joomla 3.0
This was from some other site, works perfectly on Joomla 3.1.5 and 3.2.
Step 1
Joomla 3.0.2: This is the only way I got it working. If you find another way, please let us know!
Edit “components/com_content/router.php“, then continue on step 2.
Remember, you’ll probably have to re-do this step every time you update Joomla.
Step 2 (There are two places need to do this change, one near the top, one in the middle)
Replace this:
$advanced = $params->get('sef_advanced_link', 0);
With this:
$advanced = $params->get('sef_advanced_link', 1);
Step 3
You want to edit your router.php file:
- From: ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($db->quote($segment)));
- To: ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($segment));
Step 1
Joomla 3.0.2: This is the only way I got it working. If you find another way, please let us know!
Edit “components/com_content/router.php“, then continue on step 2.
Remember, you’ll probably have to re-do this step every time you update Joomla.
Step 2 (There are two places need to do this change, one near the top, one in the middle)
Replace this:
$advanced = $params->get('sef_advanced_link', 0);
With this:
$advanced = $params->get('sef_advanced_link', 1);
Step 3
You want to edit your router.php file:
- From: ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($db->quote($segment)));
- To: ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($segment));
-
- Joomla! Apprentice
- Posts: 6
- Joined: Mon Dec 02, 2013 11:49 am
Re: Remove article id from url for joomla 3.0
nanjicong, thanks, works GREAT
- zipadyduda
- Joomla! Apprentice
- Posts: 29
- Joined: Sun Oct 10, 2010 3:49 am
Re: Remove article id from url for joomla 3.0
Why is this not done automatically?
It's a pain to have to remember and do this after each upgrade. It looks like the switch is there to make it a part of the admin gui.
It's a pain to have to remember and do this after each upgrade. It looks like the switch is there to make it a part of the admin gui.
- Webdongle
- Joomla! Master
- Posts: 44890
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Remove article id from url for joomla 3.0
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- zipadyduda
- Joomla! Apprentice
- Posts: 29
- Joined: Sun Oct 10, 2010 3:49 am
Re: Remove article id from url for joomla 3.0
That article shows how to implement the native SEF functions, which do not remove the article number from the url. If followed according to the article you get.
http://www.example.com/the-news/1-lat ... to-joomla
But you need to perform the hack above to get
http://www.example.com/the-news/latest ... to-joomla.
http://www.example.com/the-news/1-lat ... to-joomla
But you need to perform the hack above to get
http://www.example.com/the-news/latest ... to-joomla.
- Webdongle
- Joomla! Master
- Posts: 44890
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Remove article id from url for joomla 3.0
Just create menu items to the categories and articles
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- zipadyduda
- Joomla! Apprentice
- Posts: 29
- Joined: Sun Oct 10, 2010 3:49 am
Re: Remove article id from url for joomla 3.0
This is ok for categories, although it's a pain in the butt it does the trick, to me it's still a workaround for a function that should be built in.Just create menu items to the categories and articles
And then for articles you would have to create a menu item for each and every article. not practical if you have a blog. If you have more than a dozen articles it's unmanageable.
- Webdongle
- Joomla! Master
- Posts: 44890
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Remove article id from url for joomla 3.0
imho when a Category or Article has no menu item then only the 'Title aliases' should be used in the url and not the ID's. ID's may be needed in the code to locate the Category or Article but I see no reason to include ID's in the output of url path. Then I am not a developer. Perhaps someone with more knowledge of the code than me can request the change in the urls's ? http://docs.joomla.org/How_do_you_request_a_feature%3F
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Feb 25, 2014 2:58 pm
- Location: Bucharest
- Contact:
Re: Remove article id from url for joomla 3.0
for some reason this hack doesn't work on my 3.2.2
Edit:
my bad, there are 2 lines where you have to apply step 2
L:27
L:261
(http://developernote.com/2012/05/how-to ... oomla-2-5/)
Edit:
my bad, there are 2 lines where you have to apply step 2
L:27
L:261
(http://developernote.com/2012/05/how-to ... oomla-2-5/)
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Mar 12, 2014 12:51 pm
Re: Remove article id from url for joomla 3.0
hi everyone. How to remove backslash and logo from Joomla! 3.0.2 http://intergeorgia.info/ please advice
- zipadyduda
- Joomla! Apprentice
- Posts: 29
- Joined: Sun Oct 10, 2010 3:49 am
Re: Remove article id from url for joomla 3.0
I'm so sick of doing this after each upgrade. And if I forget, my links are broken. Why isn't this part of the core yet?
- Webdongle
- Joomla! Master
- Posts: 44890
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Remove article id from url for joomla 3.0
Report it and suggest your fix http://joomlacode.org/gf/project/joomla ... er_id=8103 ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 12
- Joined: Tue Dec 17, 2013 8:23 pm
Re: Remove article id from url for joomla 3.0
Hello,
I have tried the method and it works.....BUT
it duplicate the urls: one with ID and another without ...like the example:
/cat/article.html
/cat/24-article.html
both are working....
I think this is very bad for SEO purpose (and i think remove the ID is mostly for SEO purpose)
So...how to solve this???
Thanks in advance!
I have tried the method and it works.....BUT
it duplicate the urls: one with ID and another without ...like the example:
/cat/article.html
/cat/24-article.html
both are working....

I think this is very bad for SEO purpose (and i think remove the ID is mostly for SEO purpose)
So...how to solve this???
Thanks in advance!
- Josh Lewis
- Joomla! Guru
- Posts: 528
- Joined: Wed Jun 11, 2008 11:12 pm
- Location: Lynnwood,WA
- Contact:
Re: Remove article id from url for joomla 3.0
I think we are in luck: https://www.indiegogo.com/projects/adva ... outer#home
Can't wait until this arrives in Joomla.

-
- Joomla! Apprentice
- Posts: 47
- Joined: Tue May 12, 2009 12:20 am
Re: Remove article id from url for joomla 3.0
Does anyone know what's the outcome of this campaign?
€4,830EUR raised of €3,500 goal 138%
This campaign started on Apr 21 and closed on May 23, 2014 (11:59pm PT).
This campaign ended on May 23, 2014
I definitely don't like using a bunch of components just to get a simple thing like this to work.
€4,830EUR raised of €3,500 goal 138%
This campaign started on Apr 21 and closed on May 23, 2014 (11:59pm PT).
This campaign ended on May 23, 2014
I definitely don't like using a bunch of components just to get a simple thing like this to work.
Re: Remove article id from url for joomla 3.0
Hannes started good idea how to do things better in Joomla.
Maybe Joomla can thinkg about some implementation crowdfunding and ideas by community how it was done by Hannes.
It is direct and much better way than buy T-shirt I think and support something factual.
Maybe Joomla can thinkg about some implementation crowdfunding and ideas by community how it was done by Hannes.
It is direct and much better way than buy T-shirt I think and support something factual.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Jul 31, 2014 9:41 am
- Location: Pakistan
- Contact:
Re: Remove article id from url for joomla 3.0
OMG wordpress is simpler. HAHA joomla users!
-
- Joomla! Apprentice
- Posts: 47
- Joined: Tue May 12, 2009 12:20 am
Re: Remove article id from url for joomla 3.0
So why are you trolling Joomla? Looking for something better?letscodelove wrote:OMG wordpress is simpler. HAHA joomla users!

-
- Joomla! Intern
- Posts: 50
- Joined: Sun Aug 04, 2013 11:41 am
Re: Remove article id from url for joomla 3.0
WP also has many silly settings.letscodelove wrote:OMG wordpress is simpler. HAHA joomla users!
- sounds
- Joomla! Explorer
- Posts: 357
- Joined: Tue Jun 12, 2007 7:20 am
- Location: Republic of Ireland
Re: Remove article id from url for joomla 3.0
The first 2 steps worked for me, the 3rd step gave me an error.
Parse error: syntax error, unexpected '=' in /home/site/public_html/components/com_content/router.php on line 426
Parse error: syntax error, unexpected '=' in /home/site/public_html/components/com_content/router.php on line 426
Big party when I reach 10,000 posts.
Thank you
:
Thank you

-
- Joomla! Apprentice
- Posts: 47
- Joined: Tue May 12, 2009 12:20 am
Re: Remove article id from url for joomla 3.0
It will work, that's not the issue. The problem is when there's an update, you'll have to keep modifying the files as they're overwritten.
- sounds
- Joomla! Explorer
- Posts: 357
- Joined: Tue Jun 12, 2007 7:20 am
- Location: Republic of Ireland
Re: Remove article id from url for joomla 3.0
Waste of time then, really stupid to have urls with ids anyway
Big party when I reach 10,000 posts.
Thank you
:
Thank you

- rich1
- Joomla! Enthusiast
- Posts: 190
- Joined: Sun Apr 05, 2009 2:17 am
- Location: London SE
- Contact:
Re: Remove article id from url for joomla 3.0
You can always install K2 it has a function to eliminate id's in parameters.
It does say it is not wise if over 100 articles.
For those that are not constant bloggers it works well and even detects those K2 urls from search engines with the old ID's.
Then you can stop using Joomla Article Manager and have clean SEF URL's.
Something Joomla does not seem too concerned with.
It does say it is not wise if over 100 articles.
For those that are not constant bloggers it works well and even detects those K2 urls from search engines with the old ID's.
Then you can stop using Joomla Article Manager and have clean SEF URL's.
Something Joomla does not seem too concerned with.
If you have no 'Coeur de Lion' do not ask why you fail.
Re: Remove article id from url for joomla 3.0
Also it depends how many article you will handle. If its not so many, the easiest way is create menu item for every article, then you can have any url you want.
if you would like to blogging, then probably curently the best blog extension for Joomla is Easy Blog with nice editor and user interface.
if you would like to blogging, then probably curently the best blog extension for Joomla is Easy Blog with nice editor and user interface.
-
- Joomla! Apprentice
- Posts: 47
- Joined: Tue May 12, 2009 12:20 am
Re: Remove article id from url for joomla 3.0
True, but who really wants to create a menu item for each article.FlashRebel wrote:Also it depends how many article you will handle. If its not so many, the easiest way is create menu item for every article, then you can have any url you want.
if you would like to blogging, then probably curently the best blog extension for Joomla is Easy Blog with nice editor and user interface.
Re: Remove article id from url for joomla 3.0
I do that, prefer some work and have excellent website instead of look at crapy urls and sooner or later fight with them and redirect tons of links.IPN wrote:True, but who really wants to create a menu item for each article.
Create menu item takes few seconds.
Sure, its not solution for every website and everybody.
-
- Joomla! Apprentice
- Posts: 47
- Joined: Tue May 12, 2009 12:20 am
Re: Remove article id from url for joomla 3.0
That works fine with a few links. To do this is simply ludicrous for hundreds of articles.FlashRebel wrote:I do that, prefer some work and have excellent website instead of look at crapy urls and sooner or later fight with them and redirect tons of links.IPN wrote:True, but who really wants to create a menu item for each article.
Create menu item takes few seconds.
Re: Remove article id from url for joomla 3.0
Joomla is not excellent with urls, but with some work it can be fixed ... you can use some blog component how I mentioned above or also some SEF component or any other bloated staff 
When I look at some component for my needs, on very beginning I check how it handle urls, if its not well for me, then go away. Even good component with well functionality is for nothing, if I have trouble with basic - in this case urls.

When I look at some component for my needs, on very beginning I check how it handle urls, if its not well for me, then go away. Even good component with well functionality is for nothing, if I have trouble with basic - in this case urls.
- sounds
- Joomla! Explorer
- Posts: 357
- Joined: Tue Jun 12, 2007 7:20 am
- Location: Republic of Ireland
Re: Remove article id from url for joomla 3.0
It wasn't like that before, i have several sites, upgraded to the latest version, and none of the urls have these stupid numbers, what's the point, people that want to get back to one of your pages have to remember the full url which they won't. unless it's short and sweet. But nobody really memories urls.
But I don't really wanna learn another content manager to have nicer urls.
I thought about using wordpress but I'm so use to joomla now.
But I don't really wanna learn another content manager to have nicer urls.
I thought about using wordpress but I'm so use to joomla now.
Last edited by sounds on Sun Sep 07, 2014 9:09 pm, edited 1 time in total.
Big party when I reach 10,000 posts.
Thank you
:
Thank you

Advertisement