- 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.
// 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
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:
- Open the root of your Joomla website in your file manager (you can FTP or use web-based clients)
- Find the file htaccess.txt and rename it to .htaccess
All GUI
Now login to your Joomla Administrator section
- Browse to System > Global Configuration
- Click on "Articles" in the left sidebar
- Under "SEO Settings" set to "Yes" to the options:
- Search Engine Friendly URLs
- Use URL Rewriting
- Add Suffix to URL (optional)
- Unicode Aliases (optional - for international languages)
- Select the "Integration" tab
- Change the “URL Routing” option from Legacy to Modern
- A further option will appear called "Remove IDs from URLs, set to "Yes"
- Click on "Save" and you are done.
Discussion
Comments
Questions, corrections and useful additions are reviewed before appearing here.
No comments yet. Start the discussion.