How to Create SEO-Friendly URLs in Joomla
Clean and SEO-friendly URLs make your Joomla website easier to understand for both users and search engines. Instead of long, confusing links like index.php?option=com_content&id=23, SEO-friendly URLs look like /about-us or /blog/joomla-seo-tips. In this guide, we’ll show you exactly how to set them up in Joomla.
1. What Are SEO-Friendly URLs?
SEO-friendly URLs are short, descriptive, and keyword-rich web addresses. They clearly describe the content of a page without unnecessary parameters.
Example:
- ❌ Bad:
https://example.com/index.php?option=com_content&id=45&Itemid=78 - ✅ Good:
https://example.com/joomla-seo-friendly-urls
Such URLs are more clickable, easier to remember, and give search engines valuable context about your content.
2. Enable SEF URLs in Joomla
Joomla includes built-in tools to create friendly URLs. To enable them:
- Go to
System → Global Configuration → Site. - Under the SEO Settings section, set Search Engine Friendly URLs to Yes.
- Then, set Use URL Rewriting to Yes.
Important: In your Joomla root directory, rename the file htaccess.txt to .htaccess (if you’re using Apache). This activates the rewrite rules that make clean URLs possible.
3. Remove “index.php” from URLs
By default, Joomla adds “index.php” in the middle of your URLs, like this: https://example.com/index.php/about-us. To remove it, follow these steps:
- Enable Use URL Rewriting (as above).
- Ensure your server supports
mod_rewrite(for Apache) or equivalent rewrite rules (for Nginx). - Save changes and test your URLs in a browser.
If your URLs don’t work, check file permissions and verify your host supports Joomla-friendly URLs.
4. Add a Custom Alias for Each Article
When creating or editing an article in Joomla, you can manually set its Alias field. This alias becomes part of the URL.
Example:
- Article title: “How to Optimize Meta Titles in Joomla”
- Alias:
meta-titles-joomla - Final URL:
https://example.com/blog/meta-titles-joomla
Keep aliases short, lowercase, and hyphenated (no spaces or underscores).
5. Structure Your Menu for SEO
Joomla’s menu system directly affects your URL structure. Organize menus logically:
- Main Menu → Blog → SEO Tips → Article
- URL result:
/blog/seo-tips/article-name
Use clear, descriptive menu aliases like seo-tips or joomla-tutorials to keep URLs meaningful.
6. Enable Canonical URLs
Canonical URLs prevent duplicate content by telling search engines which page version is the “original.”
- Install an SEO plugin such as 4SEO or Route66.
- Enable automatic canonical tag generation in the plugin settings.
This is especially important if your articles can be accessed via multiple menu paths.
7. Redirect Old URLs to New Ones (301 Redirect)
If you changed URLs after enabling SEF, use 301 redirects to preserve SEO value and avoid broken links.
Go to Components → Redirect in your Joomla admin panel:
- Click New.
- Enter the Old URL (without the domain name).
- Enter the New URL destination.
- Save and publish.
8. Use a Sitemap for Better Crawling
After updating your URLs, regenerate your sitemap so Google can find them easily. You can use OSMap or JSitemap extensions to create an XML sitemap and submit it to Google Search Console.
9. Test Your URLs
Once setup is done, test your URLs to ensure everything works correctly:
- Check links for 404 errors.
- Validate canonical URLs in the source code (
<link rel="canonical">). - Use Google PageSpeed Insights to check performance and indexability.
Conclusion
Creating SEO-friendly URLs in Joomla is simple but crucial for better visibility and user experience. With clean, structured links, you help search engines understand your content and improve your site’s SEO performance.
Next step: Learn how to Add Schema Markup in Joomla to enhance your search appearance.