How do I redirect links in Confluence that point to an old base url, to a new one? Edited

Instance details: Confluence running as a windows service on windows server 2008 R2. Using Microsoft SQL server 2008.

We ran into an issue with our previous baseurl in regards to Oauth. A suggestion we followed was to modify the baseurl to reflect the fully qualified name of the DNS entry we made a long time ago. IE. http://wiki => http://wiki.<companyname>.com. But now we run into problems with links that use http://wiki/<rest of the link>. When a user is logged in at http://wiki.<companyname>.com, and they follow the link with just http://wiki, they are prompted to log in again. There is no clear answer in the community about how is this remedied so far. 

2 answers

1 accepted

0 votes
Answer accepted

I was able to dig through and found a question very similar to mine:

This put me on the right path. urlrewrite is a great tool if you know what your are doing. It helps if you know a web developer to assist with this. Here is the manual for urlrewrite:

For my Solution, follow my first link and review Jim Burch's answer.

Ann Worley Atlassian Team Jun 07, 2017

Thank you for following up, it really makes the community better when the Questions are solved.

0 votes
Ann Worley Atlassian Team Jun 06, 2017

Please see this doc, I think it's just what you are looking for:

How Do I replace all 'hard' links to my old Base URL

Hi Ann,

Unfortunately, I am not using Linux in any of my instances. so the sed commands in the doc you suggested.

Option 2 looks close, and I am willing to try, but my question with that would become a DBA question in regards to reinjesting a txt file to a database. Do know anyone who has confirmed this works?

It would be best to have a top level redirect that takes the existing link and redirects it to the new base url.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

276 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you