Added not found template for invalid URL and invalid ID for posts URLs.