Support

Admin Tools

#41939 Urls redirect withou suffix

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5.3.0
PHP version
8.3.21
Admin Tools version
7.80

Latest post by toonetcreation on Friday, 23 May 2025 10:20 CDT

toonetcreation

Hi,

I have a small question on admin tools.

Is there a feature to redirect automatically all URLs without .html at the end, to URLs with .html at the end?

So for instance, redirect all urls like www.test.com/contact to www.test.com/contact.html

THanks

L.

nicholas
Akeeba Staff
Manager

No, for two major reasons.

First of all, we no longer live in the pre-2008 days where search engines would consider these two URLs to be duplicate. Therefore, there is no practical reason to do this kind of redirect.

Second, putting a blanket redirect of URLs without .html at the end can be extremely dangerous. The .html extension is not decorative; it tells Joomla to forcibly add format=html to the list of page URL parameters when routing the URL. This can be detrimental for extensions using URLs which do not have a file extension, but are supposed to return JSON, plain text, or other kinds of non-HTML data. Not to put too fine a point on it, but this kind of redirection royally screws up a lot of components, plugins, and modules. Same thing goes for the forced redirection on URLs without a .html extension. If you are using any extension which handles a post-back from an external service (e.g. integrations with payment processors, social media logins, email providers, etc) the forced redirection would count as a failure for the external service, breaking the integration.

There are many more subtle ways this kind of redirection can break your site.

Please don't consider it. It is a bad idea. It will break your site. Been there, done that, saw the problems, scrapped the feature :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

toonetcreation

OK, that's very clear ;-)

thank you for your advice.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!