How to redirect own shortlinks?

Hy There,
some short help please :slight_smile:
I want to create a small custom link like for the

For the Redirection i’ve tried to edit the /var/www/nextcloud.htacces with some Rediction Rule, also my Webmin Apache Webserver config “Edit Directives” for *80 : /etc/apache2/sites-available/

RewriteEngine On
RewriteRule ^(.*)$ https://%{HTTP_HOST} [R=301,L]
Alias /getit /s/iP4DdiepeAtxasf
RedirectPermanent https://mydomain/getit

But it doesn’t matter, everytime open the link, i get the Nextcloud Login-page and not the specified Nextcloud-Folder which is shared to everyone.

Someone help me pls :slight_smile:


I’dtry with the external sites app