Internal rewrite for not found instead of return in order to display correct error pages