Completed URL redirect and page not found code.