Change the URL dyanamically in confluence page

Ganesh Punalkar March 20, 2019

Coflunce page:h https://atlassian.net/wiki/spaces/pages/420185865/Post+Cloning+Checklist

text: https://INSTANCENAME/abc.html 

https://atlassian.net/wiki/spaces/pages/420185865/Post+Cloning+Checklist?INSTANCENAME=dev

https://dev/abc.html 

 

https://atlassian.net/wiki/spaces/pages/420185865/Post+Cloning+Checklist?INSTANCENAME=test

https://test/abc.html 

I watn to change URL dynamically passing the valur in URL is it possible

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2019

Hello there Ganesh! Confluence does not have this feature natively. We need to use external tools to achieve such result. A tool that may have exactly you need is mod_proxy.

This could be done with a RewriteRule or Redirect via Apache mod_proxy:

Apache Module mod_rewrite

Redirecting and Remapping with mod_rewrite

The rule you want may look like this in your files to the redirect into test:

RewriteEngine on
RewriteRule   "^/?INSTANCENAME=test"  "https://test/abc.html "  [R,L]

Let me know your thoughts and how we could assist your further!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events