In short. Enable the System - SEF trailing slash setting for suffix-disabled SEF URLs, and treat Add Suffix to URL as a separate configuration.
Definition: Joomla's trailing slash policy is the Trailing slash for URLs setting in the System - SEF plugin. It forces Joomla to use URLs with or without a final slash by redirecting to the selected form, and Joomla documents that this setting applies only when Add suffix to URL is disabled.
Key facts
- Joomla's SEO Basics documentation describes Search Engine Friendly URLs as a way to make page addresses human readable.
- The same documentation says that the System - SEF plugin has settings for the site domain, strict handling of
index.php, and trailing slashes. - Joomla says the trailing slash setting forces the right URL with redirects, but applies only when Add suffix to URL is disabled.
- Joomla's Search Engine Friendly URLs guide makes URL rewriting and the
htaccess.txtto.htaccesschange part of the setup for Apache sites. - Joomla's Apache guide says that Add suffix to URLs adds
.htmlto the end of URLs.
Which Joomla setting chooses the slash form?
Joomla defines a SEF URL as a path that explains the page it points to. Its SEO Basics page first presents the aim of enabling Search Engine Friendly URLs: making a page address human readable. It then describes the System - SEF plugin as helping with duplicate URL forms.
The relevant plugin control is named Trailing slash for URLs. Joomla's wording is explicit: the control can force URLs to use a trailing slash or to omit one, and it uses redirects to force the selected form. This is a URL normalization rule. It changes the address requested by a browser or crawler before the page is served at the preferred form.
The plugin also documents Strict handling of index.php. When Use URL Rewriting is enabled, this option removes index.php from a URL that still contains it and redirects an incoming request with index.php to the version without it. That is a separate normalization rule from the final slash choice.
What changes when a URL suffix is enabled?
Joomla's URL guide lists Add Suffix to URL as an optional Global Configuration setting. The guide's sample progression shows the difference between the settings:
https://www.example.com/index.php/sample-layouts/articles
https://www.example.com/sample-layouts/articles.html
The first address is the guide's example with SEF URLs enabled and URL rewriting disabled. The second is its example with SEF URLs, URL rewriting, and .htaccess enabled while Add Suffix to URL is set to Yes. The Apache guide describes the same setting as adding .html to the end of URLs.
This suffix setting defines the important boundary for the slash policy. Joomla's SEO Basics documentation says the Trailing slash for URLs redirect is applied only when Add suffix to URL is disabled. Therefore, the documentation supports a slash policy for the suffix-disabled configuration. It does not specify a combined trailing-slash rule for .html URLs, so that combination remains an open implementation point rather than a documented Joomla behavior.
What must be enabled for the SEF setup?
Joomla's URL guide gives the configuration sequence: enable Search Engine Friendly URLs in Global Configuration, enable Use URL Rewriting, and optionally enable Add Suffix to URL. On Apache, it says to rename htaccess.txt in the site root to .htaccess. The Apache-specific guide explains that Use Apache mod_rewrite/URL rewriting uses Apache's mod_rewrite function to remove the index.php portion of the URL.
The Apache guide also places the System - SEF plugin in the Plugin Manager. It says the plugin adds SEF support to links in Joomla articles, operates directly on the HTML, and does not require a special tag. The slash redirect setting therefore belongs to the plugin's URL-normalization behavior, while URL rewriting and the server configuration determine whether the clean path can be served.
Related terms
FAQ
Does Add Suffix to URL add a trailing slash?
Joomla documents Add Suffix to URL as adding .html to the end of URLs. Its SEO Basics documentation limits the Trailing slash for URLs redirect to cases where the suffix setting is disabled, so it does not document a trailing slash policy for the .html form.
Does the System - SEF plugin remove index.php?
The plugin's Strict handling of index.php option removes index.php when Use URL Rewriting is enabled and redirects incoming requests containing it to the version without it. The Apache guide connects URL rewriting to Apache's mod_rewrite function.
Is the redirect status code documented?
The Joomla pages describe the trailing slash behavior as redirects but do not name an HTTP status code. Check the response headers on the configured site when the exact status matters.
Sources
- Joomla Documentation, "SEO Basics", undated
- Joomla Documentation, "Search Engine Friendly URLs", undated
- Joomla Documentation, "SEF URLs on Apache", undated
Check how a page reads to answer engines. Open the GEO score analyzer