Redirect to the index page when no route is matched and the mode is not development (in which case we show the available routes).