fix error404 if slash at the end of the page