"We could not find the post or forum that you were trying to access." - error message.

How do I redirect the user to the forum index instead of showing this message?