Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eric Newton 3 posts 23 karma points
    Mar 06, 2010 @ 16:17
    Eric Newton
    0

    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?

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 06, 2010 @ 16:20
    Peter Dijksterhuis
    1

    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

  • jaygreasley 416 posts 403 karma points
    Mar 06, 2010 @ 16:20
    jaygreasley
    1

    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

        <add key="umbracoReservedPaths" value="/umbraco,/install/,/forum/" />
  • jaygreasley 416 posts 403 karma points
    Mar 06, 2010 @ 16:21
    jaygreasley
    0

    Peter beat me by 24 seconds ;-)

Please Sign in or register to post replies

Write your reply to:

Draft