I have been looking for a solution to my problem for days. Unfortunately without success. Before I try now days further around and it in the end no solution I ask you.
On my Univention server I have installed the app "Rocket.Chat". This installs itself as a Docker container.
I have created a subdomain 'chat.example.com' for Rocket.Chat which points to the Univention server. To call Rocket.Chat I have to enter in the browser:
https://chat.example.com/rocketchat/home
I do not like this. I would like it so that when I:
https://chat.example.com
I get directly to Rocket.Chat. I have also managed this with MOD_REWRITE. But then the browser shows the complete URL (https://chat.example.com/rocketchat/home
) again.
To prevent this I have tried the following:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^chat.example.com$ [NC]
RewriteRule ^/(.*)$ /rocketchat/home/ [P,L]
Where am I making the mistake?
with best