How to Create SEO-Friendly URLs in Joomla

⏱ 5 min read 226 Updated April 23, 2026
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:

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:

  1. Go to System β†’ Global Configuration β†’ Site.
  2. Under the SEO Settings section, set Search Engine Friendly URLs to Yes.
  3. 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:

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:

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:

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.”

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:

  1. Click New.
  2. Enter the Old URL (without the domain name).
  3. Enter the New URL destination.
  4. 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:

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.