Change/ Remove Article ID in URL?

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

Moderator: General Support Moderators

DavidKley
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jul 17, 2014 8:56 am
Location: St Louis, MO
Contact:

Re: Change/ Remove Article ID in URL?

Post by DavidKley » Thu Jul 17, 2014 8:58 am

Without an extension, the only way to remove the article id is to create a menu item leading to the article. But once you have done this, the id will disappear, and will also get rid of the leading category URL.

Example before: www.yourdomain.com/category/12-cool-post
Example after: www.yourdomain.com/cool-post

IMO this is much better for seo, unless you need the subcategories displayed.
You can view this on the page we just created here http://www.webdesignandcompany.com/seo- ... -business/

Took a while to figure it all out. Joomla 3 has so many settings. ;)

davidascher
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Tue Feb 28, 2006 3:23 pm

Re: Change/ Remove Article ID in URL?

Post by davidascher » Tue Jul 29, 2014 12:10 am

It would be really great if people would stop repeating the suggestion to create a menu item for every article. This may be practical on a site where articles are not being added very often, but to add the menu creation step to the process of adding a new article, is just not very practical on a site where articles are being added often.

It is not at all obvious that the article id is necessary since Joomla 2.5 to uniquely identify an article within a category, so why are the SEF URLs still being generated with the article id??

onlinenewsind
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Sep 01, 2014 5:13 am
Contact:

Re: Change/ Remove Article ID in URL?

Post by onlinenewsind » Mon Sep 01, 2014 5:27 am

http://www.onlinenewsind.com
http://www.onlinenewsind.com/education/ ... l-teachers
where 12 is article id can anyone tell me to go out of this, i am using joomla 3.3.3

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24911
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Change/ Remove Article ID in URL?

Post by pe7er » Mon Sep 01, 2014 5:53 am

davidascher wrote:create a menu item for every article.

That's exactly the solution I would use on a website with not too many articles.
You can create a Hidden menu for that: a Menu that's not visible on the site because it does not have a Menu Module.
davidascher wrote:This may be practical on a site where articles are not being added very often, but to add the menu creation step to the process of adding a new article, is just not very practical on a site where articles are being added often.
For sites with a lot of new articles each day, you could use a SEF extension,
e.g. sh404SEF (paid download)
http://extensions.joomla.org/extensions ... /sef/10134
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

onlinenewsind
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Sep 01, 2014 5:13 am
Contact:

Re: Change/ Remove Article ID in URL?

Post by onlinenewsind » Mon Sep 01, 2014 5:56 am

Thanks Peter Martin but is there any free extension to solve this

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24911
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Change/ Remove Article ID in URL?

Post by pe7er » Mon Sep 01, 2014 6:09 am

Yes, see the extensions at http://extensions.joomla.org/extensions ... gement/sef that are labeled as
"Type: Free"
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

onlinenewsind
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Sep 01, 2014 5:13 am
Contact:

Re: Change/ Remove Article ID in URL?

Post by onlinenewsind » Mon Sep 01, 2014 9:05 am

Solved
Thanks Peter Martin but now i have solved this issue by editing router.php file and my website looks good and no article id in URL. see website
http://www.onlinenewsind.com/
http://www.onlinenewsind.com/education/ ... l-teachers

:)

davidascher
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Tue Feb 28, 2006 3:23 pm

Re: Change/ Remove Article ID in URL?

Post by davidascher » Tue Sep 02, 2014 2:26 am

I would be very very interested in knowing more about the modification you made to router.php. Can you post more about what you did?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30769
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Change/ Remove Article ID in URL?

Post by Per Yngve Berg » Fri Jan 09, 2015 9:22 am

Create a Menu Item to access the article through.

Note: This is the 1.5 forum. Post in the proper forum.

Bo jan
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Feb 17, 2015 6:09 pm
Location: Sweden

Re: Change/ Remove Article ID in URL?

Post by Bo jan » Thu Feb 19, 2015 4:44 pm

So what is the fix for article ID showing? Would you like to share WHAT TO DO WITH ROUTER.PHP, where do I find this file?? This should work in Joomla not needing external extensions. Thanks


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 1.5”