Customizing Confluence URL

Hi!

I have a question about URLs.

Is there a way to change my long

https://myconfluence.com/pages/viewpage.action?pageId=111 URL

to a little bit more short, for example https://myconfluence.com/page/111?

I've installed Advanced Redirection plugin but it is able to redirect to a static URLs only, so I can't use the PageID to right redirection. I mean I can't change ...pages/viewpage.action?pageId=111 to desirable ...page/111 without hard codding, because the 'Redirect to' parameter doesn't support dynamically addresses.

My google search can't answer=)

Please help!

Regards

Serafim

2 answers

1 accepted

1 vote
Timothy Chin Community Champion Oct 15, 2014

There is no option to do this in Confluence as I know. This should be done using a webserver rewrite (e.g. Apache Rewrite).

Steven Behnke Community Champion Oct 16, 2014

Correct. This should be intermediate difficulty for a serious netadmin or webserver admin. Confluence has some documentation but they say in a big note, "We do not support customized configurations! Can't help ya!" for good reason: There are unlimited options for web applications and url configurations. https://confluence.atlassian.com/display/DOC/Using+mod_rewrite+to+Modify+Confluence+URLs You would need to front Tomcat with Apache and then in the text configuration file, you would call the module and then load in your rules for writing.

Confluence URLs are usually user-friendly. You only get long ugly ones like your example when there are special characters in the title. A page title of "Hello World" would be something like

myownwiki.com/display/spacename/Hello+World

but if you add punctuation such as "Hello, World!" it changes to look like your example.

If you look in Tools > Page Information, there's already a short "tiny link" URL for every Confluence page that is generated when the page is created and doesn't change if the title is edited. They look like this:

myownwiki.com/display/x/cA-yAw

It might be possible to retrieve that short URL programmatically. Someone more knowledgeable then me would have to advise on that.

Thank you! But I use Russian letters in my page names, so I have long URLs everytime =) I've find the solution in editing urlrewrite.xml

Hello mate,

Sorry to "rescue" this topic after so much time, but how exactly you've solve the problem editing urlrewrite.xml?

I don't use Russian, but use Portuguese with so many long URLs and special characters as you do =D

So I have the very same problem, I don't know how to resolve. There's an "open status" Jira ticket since 2004, but seems that Atlassian still hasn't accept it to their backlog.

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published Friday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

54 views 0 3
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot