Migration to Nextcloud - howto fix address?

Hi,

I’m thinking about migrating from ownCloud to Nexcloud. Now my server can be found at address similar to this:

https://example.com/owncloud

But to stop confusion I want to change the address to

https://example.com/nextcloud

Is there a way to redirect every request from …owncloud to …nextcloud so that the users don’t have to change their settings for syncing files, addressbooks and calendars?

Found the solution myself:

Just added this to my default-ssl.conf

Alias /owncloud "/var/www/nextcloud/"

Apache has such an option:
Redirect "/owncloud/" "/nextcloud/"
Make sure that https://yourdomain.com/nextcloud works and you don’t create a redirect loop. If you use the default apache configuration for owncloud, you probably have to replace
Alias "/owncloud" "/path/to/owncloud"
by
Alias "/nextcloud" "/path/to/owncloud"

The absolute path name still contains owncloud, which is not nice but renaming the data/-folder is not supported (https://github.com/nextcloud/server/issues/137) yet.

I’ve already moved my data directory. I just had to add this to my config.php:

'datadirectory' => '/path/to/folder/data',

There are different experiences. It seems to work in some cases. But the old path can be in some parts of the database and could make problems (which are not immediately visible).