url-rewrite with confluence

I am trying to perform a simple url rewrite however it seems everything I try does not do what I am expecting.

I am using UrlRewrite 2.5 plugin from tuckey.org
Basically I just want to redirect http://wiki/marketing to http://wiki/display/CORP/Marketing so my end users dont have to type the exra display/CORP.

Here is once example that I tried in my urlrewrite.xml file

<rule> 
<from>^/maketing$</from> <to type="redirect">/display/CORP/Marketing</to>
</rule>

3 answers

mod_rewrite works for sure:

RewriteEngine on
RewriteRule ^/marketing$
/display/CORP/Marketing [R]

2 cents: I never tried this one, but I imagine that the order of the filters is important, so try to move your filter declaration as the first one (so that this is invoked first).

I also think that you should come with more info. What kind of problems do you have ? (what is happening ?)

Thanks for you answer... I will give this a try.

Basically nothing happends as if the rule does not exist.

Have you tried to enable some debug on it ?

<init-param>
<param-name>logLevel</param-name>
<param-value>DEBUG</param-value>
</init-param>
1 vote
Penny Wyatt Atlassian Team Mar 22, 2012

The <from> value you have there is "maketing", it should be "marketing" (with an "r").

I was able to get this working by upgrading to conf 4.1 and installing a redirect plugin.

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...

1,783 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