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

Aram Ghanimian June 6, 2017

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
Aram Ghanimian June 7, 2017

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.

AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 7, 2017

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

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 6, 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

Aram Ghanimian June 6, 2017

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?

Aram Ghanimian June 6, 2017

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
TAGS
AUG Leaders

Atlassian Community Events