Rewrite URL - Making URLs simplified

I am trying to make my Confluence URL simplified. For example my current set up is Is there a plugin or a way to rewrite all pages to something much more simple like,

My server is on Apache Tomcat so Im not sure if mod_rewrite could do this? 


2 answers

0 vote

Hi Matt, 

You are right, you can do it using mod_rewrite.

I believe the code below will help to do what do you want. Just remember to enable the mod_rewrite on your Apache. After, create a .htaccess. on your root directory with this code:


RewriteEngine  on

RewriteRule    ^display/KB/Knowledge+Base+Home(/.*)?$ display/Knowledge+Base+Home/$1 


Now, restart your apache and test it.


I hope it helps.



Renato Rudnicki

Thanks for the reply Renato. However my server is Apache-Tomcat and not just Apache. My understanding is that Apache-Tomcat will ingore .htacess files. 

Also your above example only rewrites the current article "Knowledge Base Home". Is there a way to automatically rewrite all articles when posted instead of manually having to rewrite them?

Tomcat doesn't really support any form of rewrites, so Renato is effectively suggesting that you place Apache in front of your Confluence to do it. Also, Confluence does not support these rewrites - you're going to have a lot of "fun" trying to persuade them to work smoothly.

Yes, Nic is right and sorry if I wasn't clear about using an Apache in front of Confluence :).

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,088 views 25 10
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