Copied to clipboard

Flag this post as spam?

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


  • Peter S 169 posts 587 karma points
    May 15, 2014 @ 13:29
    Peter S
    0

    Hijack route to aspx page

    I'm running a 7.1 site using MVC but would like to add some logic to an aspx page outside of the umbraco routing. How can this be done? If placed in a folder called /page/page.aspx I don't want umbraco to turn that into a 404. How do I do this?

  • Henk Jan Pluim 15 posts 67 karma points
    May 16, 2014 @ 10:59
    Henk Jan Pluim
    0

    Hi Peter, You can do this by adding for example a specific directory name to your web.config umbracoReservedPaths AppSettings value or use the setting above (umbracoReservedUrls). 

    I for example created a directory pages and placed an webform default.aspx page in this directory. And set this value in my webconfig:

    <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/pages/" />

     

     

Please Sign in or register to post replies

Write your reply to:

Draft