Redirect to a new page on 404 Error

How to make a redirect to a new page(create page in current space with ${not found page} name) on 404 Error in Atlassian Confluence?

I think I need to change action in web.xml:

 <error-page> <error-code>404</error-code> <location>/fourohfour.action</location> </error-page> 

To something like:

 <error-page> <error-code>404</error-code> <location>/createpage.action?spaceKey=currentSpace&pageTitle=notfoundpagename</location>
Could you please provide me a right syntax?

2 answers

A different solution to the larger problem is outlined here.

Rather than changing the 404 page, you could change your links to the format-


such that-

  • If the page exists, user is redirected to that page.
  • If the page doesn't exist, user is able to create it.

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

281 views 38 9
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
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