Rewrite Rules not working

On a specific sub domain of our UCS I want to rewrite one specific URL. At first I added the rewrite rues to the specific vhost config file. Nothing happened. Recognizing there is the univention-letsencrypt.conf as well in the apache config I added the rewrite rules there as well but nothing ever happened.

What might be the reason behind?

Here’s the rewrite rules I tested without any success. Maybe one has an idea? Yes, I performed at least a systemctl force-reload apache2 after changing the settings.

RewriteEngine on
    RewriteRule ^s/andytest$ https://google.de [R=301,L]
    RewriteRule "^s/andytest2$" "/s/NAY2cZRa45Eknk7" [R=301,L]
    RewriteRule ^s/andytest3 /s/NAY2cZRa45Eknk7 [R=301,L]
    RewriteRule "^s/andytest4" "/s/NAY2cZRa45Eknk7" [R=301,L]
    RewriteRule ^s/andytest5$ https://google.de
    RewriteRule "^s/andytest6$" "/s/NAY2cZRa45Eknk7"
    RewriteRule ^s/andytest7 /s/NAY2cZRa45Eknk7
    RewriteRule "^s/andytest8" "/s/NAY2cZRa45Eknk7"
Mastodon