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
(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.
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.
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.
Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events