Q&A: Can URLs with or without a trailing slash treated equally?

apache
http
web
q-a

#1

Kudos at @Moritz_Bunkus

Question

Can URLs with or without a trailing slash treated equally?

Answer

For some apps it is a difference if they get called by https://ucs.domain.com/app or https://ucs.domain.com/app/.
Add a file to Apache, e.g. /etc/apache2/conf-available/app-fix.conf , with the following content:

RedirectMatch ^/app$ /app/

Enable the configuration:

a2enconf app-fix
systemctl reload apache2

Then both URLs can be used similarly.


#2