Copied to clipboard

Flag this post as spam?

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


  • Danny Fallas 4 posts 74 karma points
    Sep 08, 2016 @ 20:56
    Danny Fallas
    0

    .asmx .ashx .axd files redirect

    Hi guys,

    I got a 404 report on a site I got, and I found out that when there is any of this extensions, the IIS server fails and sends an resource not found error. I set this file extensions to be redirected to the 404 page on the site, like this:

    <!--This is the rule for ashx, asmx, axd files-->
    <add name="redirect117" redirect="Application" virtualUrl="^~/.*.ashx.*$" destinationUrl="/system/404" ignoreCase="true"/>
    <add name="redirect118" redirect="Application" virtualUrl="^~/.*.asmx.*$" destinationUrl="/system/404" ignoreCase="true"/>
    <add name="redirect119" redirect="Application" virtualUrl="^~/.*.axd.*$" destinationUrl="/system/404" ignoreCase="true"/>
    

    My question is, if I have this extensions redirect to 404, would I lose some Umbraco functionality, as we don't use this kind of extensions in our code.

    Need help, because we need this to be handled but don't know what effect it will have on the umbraco cms.

    Thanks. D.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies