Support

Admin Tools

#24470 Removing trailing slash

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
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by tampe125 on Wednesday, 17 February 2016 04:40 CST

[email protected]
 Hello,
I cannot remove trailing slash from my URLs via .htaccess
Only way i can make it work is to add this at the beggining, thus disabling Admin Tools rules:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

Removing the [L] flag, or adding this as the last rule, while removing [L] flag from "RewriteRule .* index.php [L]" in Joomla! core SEF section causes the URL with trailing slash to return 404.

I've tried doing that both manually in .htaccess, and via .htaccess Maker in back-end.

Best regards
Sławomir Białota

tampe125
Akeeba Staff
Hello,

did you try to add that rule in the section Custom .htaccess rules at the top of the file inside .htaccess Maker?
What happens if you try to do that?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

[email protected]
Yes, i've tried it. The URL returns 404.

[email protected]
Oh, nevermind. It worked when i added this rule in htaccess Maker with the [L] flag. I haven't tried this because it seemed to me like it would also block all other Admin Tools rules

tampe125
Akeeba Staff
I'm glad you fixed your issue!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

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!