This post shows you how to fix the error No physical template file was found for template X. There is an animated which shows you how to fix it.
This error usually happens when you publish a site and forget to include some of the files in the project.
To fix it, just go into Visual Studio and include the missing files.
See the below animation for how to do this:
This post is a reference to show you how to set up rewrite rules in your web.config file.Read Post