Missing slash after domain name

Hi all,

I have migrated my NextCloud instance from one server to another one almost successfully.

My issue is that when I access to https://domain (or domain/index.php) it is redirected to domainapps/files instead of domain/apps/files. If I access to https://domain/apps/files it works fine.

Looking into the browser network trace, the following redirections occur:

  1. domain/index.php, then
  2. domain/apps/files, then
  3. domainapps/files

My configuration is:
Nextcloud version : 13.0.5
Operating system and version : 18.04
Apache or nginx version : Apache 2.4.29
PHP version : 7.1.20

There are no errors generated in NextCloud nor Apache logs when this occurs.

Any clues?

Thanks!

Do you use the default .htaccess? Did you use the URL shortening (removing index.php from the URL)? Did you do this via the occ command, or just edit the .htaccess yourself?