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.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As answered in another question, Confluence Cloud will automatically redirect pages with names to pages with IDs. See the following answer:
Note: I only just found the answer and I do not know anything about the nature or performance of these redirects.
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.