Use Nextcloud only for Forms & change Login

Hi,

we would like to use Nextcloud only for the new App “Forms”.

Is there a way to redirect all Links to a another side except /apps/forms + login (for administration).
Is there also the possibilty to change the the login url? Maybe www.mysite.com/admin instead of www.mysite.com/login or www.mysite.com/index.php/login.

I tried so much with .htaccess , but i dont get it to run.

Thanks so much!

If you are using apache2, you can enable mod_rewrite (actually already needed by NC). And simply create rewrite rules --> https://httpd.apache.org/docs/2.4/rewrite/remapping.html
e.g. (not an expert, only example)

RewriteEngine  on
RewriteRule    "^index/login.php$"  "admin/login.php"
# OR
RewriteRule    "^index/login.php(.*)"  "admin/login.php$2" [R]