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 Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

53 views 2 4
View post

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