Joomla: Remove IDs from URLs for out-of-the-box SEF

Applies to
  • Joomla! CMS v3.5.x

What?
This is a short article on how to remove the ID numbers from your Joomla website addresses for search engine friendly URLs.

copyraw
// What I have
www.joellipman.com/index.php?option=com_content&category_id=4&article_id=123-article-alias

// With URL rewriting enabled
www.joellipman.com/index.php/4-category-alias/123-article-alias.html

// What I want
www.joellipman.com/category-alias/article-alias.html
  1.  // What I have 
  2.  www.joellipman.com/index.php?option=com_content&category_id=4&article_id=123-article-alias 
  3.   
  4.  // With URL rewriting enabled 
  5.  www.joellipman.com/index.php/4-category-alias/123-article-alias.html 
  6.   
  7.  // What I want 
  8.  www.joellipman.com/category-alias/article-alias.html 

How?
You could buy an SEF extension that does this for you or spend time tweaking your .htaccess file.  Or you can take advantage of a Joomla update and do this without any coding...

Pre-amble
To allow the Joomla CMS to manage your SEFs you need to setup your htaccess file:
  1. Open the root of your Joomla website in your file manager (you can FTP or use web-based clients)
  2. Find the file htaccess.txt and rename it to .htaccess

All GUI
Now login to your Joomla Administrator section
  1. Browse to System > Global Configuration
  2. Click on "Articles" in the left sidebar
  3. Under "SEO Settings" set to "Yes" to the options:
    1. Search Engine Friendly URLs
    2. Use URL Rewriting
    3. Add Suffix to URL (optional)
    4. Unicode Aliases (optional - for international languages)
  4. Select the "Integration" tab
  5. Change the “URL Routing” option from Legacy to Modern
  6. A further option will appear called "Remove IDs from URLs, set to "Yes"
  7. Click on "Save" and you are done.
Category: Joomla :: Article: 711

Add comment

Your rating:

Submit

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

Accreditation

Badge - Zoho Creator Certified Developer Associate
Badge - Zoho Deluge Certified Developer
Badge - Certified Zoho CRM Developer

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF

Please publish modules in offcanvas position.