I have recently completed migration of our on Premise Confluence instance to the Atlassian cloud. I did this on a Space by Space basis with export and import (there were reasons for this).
What we now want to do is to set up some sort of redirect from the old instance to the new one so that people are not forced to fix their links/bookmarks.
This isn't quite as simple as that though, because the URLs of the new site are different to the old site. An example: /display/WBP/Beckelmann becomes /wiki/spaces/WBP/overview.
We have used the REST API to build a mapping of the pages, but I am struggling to work out the best way to implement that. Has anyone had any experience with this, or got a guide I could read?
Hey James,
Hope that everything went well with your migration!
Indeed, the URL is different, but this should be doable if we take into consideration that in the cloud an URL of type:
https://sitename.atlassian.net/wiki/display/spacekey/pagename
should automatically redirect you to the new page in the cloud, which format will be:
https://sitename.atlassian.net/wiki/spaces/spacekey/pageid/pagename
e.g.:/wiki/display/WBP/Beckelmann -> /wiki/spaces/WBP/pages/pageid/Beckelmann
Can you please check this on your site and let me know if this works for you?
Cheers,
Ramona
Hi Ramona,
That's a really good tip. It definitely works as you suggest.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is great news, James! Happy that I could help.
Cheers,
Ramona
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can this be automated? How does one redirect any page to its correct new url in the cloud version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We created a httpd rule to forward as follows:
Redirect permanent "/display/" "https://sitename.atlassian.net/wiki/display/"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What about those links where the cloud page has a page id rather than a name?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.