Putting an ASPX page into main directory... to handle something complicated
Hey, why is it when I put an ASPX page into the root of an umbraco site, umbraco tries to look for a node named that, instead of just going to the ASPX page?
I'm guessing somebody is going to tell me to do this as a macro/user control, but seriously, we're migrating from an aspx site where there's a lot of aspx pages that do stuff.
Any suggestions, like reorder httpmodules or something?
solution is easy. Open the web.config. There are 2 keys there: umbracoReservedUrls and umbracoReservedPaths
Simply add the name of your page to the umbracoReservedUrls and umbraco will not try to look for that.
If you have multiple pages, you might want to create a folder for that where you place all your pages. Then add that folder to the umbracoReservedPaths.
it's because Umbraco uses url rewriting. The best way to do this is to put all your aspx pages into a subfolder and configure Umbraco to ignore that folder.
You can ignore individual files but it's simpler to exclude a folder.
In web.config change the umbracoreservedPaths list (comma separated list of folders to ignore)
Putting an ASPX page into main directory... to handle something complicated
Hey, why is it when I put an ASPX page into the root of an umbraco site, umbraco tries to look for a node named that, instead of just going to the ASPX page?
I'm guessing somebody is going to tell me to do this as a macro/user control, but seriously, we're migrating from an aspx site where there's a lot of aspx pages that do stuff.
Any suggestions, like reorder httpmodules or something?
Hi,
solution is easy. Open the web.config. There are 2 keys there: umbracoReservedUrls and umbracoReservedPaths
Simply add the name of your page to the umbracoReservedUrls and umbraco will not try to look for that.
If you have multiple pages, you might want to create a folder for that where you place all your pages. Then add that folder to the umbracoReservedPaths.
Hope this helps,
Peter
it's because Umbraco uses url rewriting. The best way to do this is to put all your aspx pages into a subfolder and configure Umbraco to ignore that folder.
You can ignore individual files but it's simpler to exclude a folder.
In web.config change the umbracoreservedPaths list (comma separated list of folders to ignore)
hth
j
Peter beat me by 24 seconds ;-)
is working on a reply...