Custom directory routing?

Topics: Customizing Orchard, Troubleshooting
Jun 5, 2012 at 3:09 AM

Hi,

How do I make that an specifig url targets and specifigs folder on the server?? Pour example, I need that http://website.com/downloads doesn't point to a "Download" page (thats Orachrd normal behavior)  but to a directory "Download" on the server...  I guess I'll to set the routing somewhere..  but I dont know where... any help?

Thanks

 

Coordinator
Jun 5, 2012 at 4:49 AM

What do you mean? What do you want to happen when you browse /downloads?

Jun 7, 2012 at 3:32 PM

Hi,

What I'm trying to say is what I've its a folder called "Downloads" with some files on it, not a page... with orchard when I try to access that folder via the URL http://website.com/downloads/<whatever file> I got "a page not found error" because Orchard is looking for the  page Downloads that doesn't exist.... how can I change that? how can I configure or modify orchard in order to not to look for a page in this case...?

Roygar

 

Coordinator
Jun 8, 2012 at 5:39 AM

Just copy the web.config from any static content folder, such as a Scripts or a Styles folder.

Jun 8, 2012 at 2:03 PM

Thanks!!