I would like to have a /downloads folder inside an Orchard web app where I can direct clients to so they can download files ie. www.mydomain.com/downloads/test.txt
In IIS I have created a virtual directory (not an Application) underneath the Orchard website that points to the downloads folder on the server.
In the Orchard Global.ascx file, I've added the following, thinking that it was a routing problem:
public static void RegisterRoutes(RouteCollection routes) {
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("downloads/{*pathInfo}"); // added this IgnoreRoute
}
Not 100% sure if this is required.
However, when I go to download the file, www.mydomain.com/downloads/test.txt, I continue to receive a 404 error.