URLs with or without a trailing slash are treated differently

apache
http
web

#1

Kudos at @Moritz_Bunkus

Question

For some apps it is a difference if they get called by https://ucs.domain.com/app or https://ucs.domain.com/app/. How can I get both URLs available?

Answer

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