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

I was able to dig through answers.atlassian.com and found a question very similar to mine:

https://community.atlassian.com/t5/JIRA-questions/Force-Jira-redirection-to-single-domain/qaq-p/367761#M197151

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:

http://cdn.rawgit.com/paultuckey/urlrewritefilter/master/src/doc/manual/4.0/index.html

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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

387 views 17 9
Join discussion

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