Migrate existing clients to the new URL the smooth-way

Hi there,

I just upgraded my ownCloud instance to nextcould. Everything is fine.

Just one question …

If I want to change my URL from https://www.example.com/owncloud to https://www.example.com/nextcloud without touching existing connected clients … What is the best way!!!

Should I put an

            Alias /owncloud /var/www/html/nextcloud

in my Apache configuration or is there a better way?!?

Thanks.

Cheers,
Andreas

Keeping two different subdirectories (owncloud and nextcloud) could be a problem. So I would move everything to the subfolder nextcloud and redirect everything pointed to owncloud there as well:

Alias /nextcloud /var/www/html/nextcloud
Redirect "/owncloud/" "https://example.com/nextcloud/"

Hi.

I only want one directory … :slight_smile:

But you mean:

Alias /owncloud /var/www/html/nextcloud
Redirect "/owncloud/" "https://example.com/nextcloud/"

?!?!

Cheers,
Andreas

… or perhaps

Redirect permanent "/owncloud/" "https://example.com/nextcloud/"

?

Do you have something under https://example.com (root directory) … or why are you using /nextcloud or /owncloud :thinking:

Be prepared for future forks :wink:
That’s actually the way, I’m planning to go, perhaps a nice subdomain: cloud.example.org

That’s a good question, will the owncloud-client replace the URL?

yes im using https://www.example.com/owncloud at the moment.

… perhaps I should move it to https://nextcloud.example.com/

You should. This is more secure because of the Cookies (Same Site) … :grin:

Okay. Thanks :slight_smile: :thumbsup:

So I will use a subdomain - and then the folder name can be nextcloud or I’ll Ieave the folder name it as it is.

1 Like