Redirect Confluence URL

scbarmoy November 5, 2013

Hi,

My project has used Confluence and Jira for about a year now and have over a hundred users who know and use these links daily. We recently set up a proxy for those outside of our network to access these sites. At the moment, the url for our confluence, for example, is still https://confluence.mycompany.com:8443.

Now that we have set up a proxy, we had to add /wiki to the end of the url by modifying 'path"/wiki"' in server.xml for it to work properly. So users can now access confluence from the proxy, when outside of our network, at https://proxy.mycompany.com:8443/wiki or at the original server https://confluence.mycompany.com:8443/wiki.

I have now changed my baseurl to include /wiki on the end. Since the users are already familiar with the original url, I want to redirect that original url, https://confluence.mycompany.com:8443, to https://confluence.mycompany.com:8443/wiki, but haven't been able to figure out how to do it properly.

I have added a redirect in index.html that redirects https://confluence.mycompany.com to https://confluence.mycompany.com:8443/wiki but I can't figure out a redirect that works with the port number on the end, as in the original url. Some suggestions I've read suggest a proxy, but I'm already proxying to another server. Any help would be appreciated!

2 answers

2 votes
Steve April 28, 2021

If you have to (or eventually forced to) move to cloud you can't technically create a Confluence redirection. We had this need so we built a confluence redirection macro for cloud as we didn't find something that worked for us on the marketplace. We discovered it does some things can't on server or data center which was pretty nice.

We put it on the marketplace, so if you need to investigate how to create a confluence page redirection in cloud ask questions or take a look at what we did - Easy Redirection.

2 votes
Tiago Comasseto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2014

Hi there, you may modify the web-inf/urlrewrite.xml. There are some examples of how to create redirect rules at the following links:

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events