redirect from old confluence server URLs

Hamish Moffatt
Contributor
January 14, 2021

I have migrated my self-hosted Confluence Server to Confluence Cloud.

I would like the old URLs to work in case people have saved bookmarks, emails and so on. Does anyone have some redirect rules that would work?

I have not been able to find a pattern. Some of the URLs I have are

/confluence/dashboard.action

/confluence/display/WA/4P12.01

(WA is a space, 4P12.01 is a page). On Cloud the pages all seem to have a page number in them which is not in the Server URL.

2 answers

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2021

No, I'm afraid Cloud has this stupid scheme where it inserts the id into the url, making a nonsense of the "page name is the easy way to build a url" idea.

To do what you're trying to do, you'd need to build an indexing system, something that can work out what the id is and build the new url to be redirected to.

Hamish Moffatt
Contributor
January 15, 2021

Thanks. What I ended up with is redirecting some links to the search page, and the rest to the Confluence home. That will be good enough.

For Apache:

RedirectMatch /confluence/display/.*/(.*)$ https://<site>.atlassian.net/wiki/search?text=$1
RedirectMatch /confluence/(.*)$ https://<site>.atlassian.net/wiki/

 

Fortunately the Jira URLs are easier to redirect.

Like Noah Bailey likes this
0 votes
MS June 8, 2022

As answered in another question, Confluence Cloud will automatically redirect pages with names to pages with IDs.  See the following answer: 

https://community.atlassian.com/t5/Confluence-questions/Post-migration-to-the-cloud-Redirection/qaq-p/1118935

Note: I only just found the answer and I do not know anything about the nature or performance of these redirects.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events