We have an application built using .NET 4.0 and running on IIS 8.5. We have some HTML pages and PDF files moved to separate directory in the application and URLS needs to be 301 redirected to new location. If we use .NET handler for redirecting HTML and PDF files then the redirection pages works proper, but we are having problems with other HTML pages and PDF files which are accessed using their actual URL.
How should we handle the 301 redirection for HTML and PDF files?