Copied to clipboard

Flag this post as spam?

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


  • Saied 349 posts 674 karma points
    Sep 09, 2016 @ 18:51
    Saied
    0

    Text file in url does not execute ContentFinder?

    Hi,

    I have a LastChance Content Finder I setup and if I put in a url like http://abc.com/def, it hits it, but if I try to access http://abc.com/def/abc.txt, it does not hit the content finder.

    This was working before so I am curious if I am doing something wrong or if there is something I need to do?

    Thanks, Saied

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Sep 09, 2016 @ 19:06
    Dan Diplo
    0

    I think Umbraco will only intercept calls for .aspx files and not static files.

  • Saied 349 posts 674 karma points
    Sep 09, 2016 @ 19:08
    Saied
    0

    Hi Dan,

    This was working before though. It would intercept the call for the static file. I did a deploy yesterday and it stopped working.

    Thanks, Saied

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Sep 09, 2016 @ 19:18
    Dan Diplo
    0

    Have you tried diffing your web.config and umbracoSettings.config files to see if any changed between deploys?

    At bottom of umbracoSettings.config you usually need to set trySkipIisCustomErrors to "true" like so:

      <web.routing trySkipIisCustomErrors="true" internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false"
        umbracoApplicationUrl="" disableRedirectUrlTracking="true">
      </web.routing>
    

    You may also need to add (or amend) in system.webserver in web.config this:

    <httpErrors existingResponse="PassThrough"/>
    
  • Saied 349 posts 674 karma points
    Sep 09, 2016 @ 20:02
    Saied
    0

    Dan,

    I just looked and when it was working it had:

    <httpErrors errorMode="Custom" existingResponse="Replace">

    and trySkipIisCustomErrors="false"

    I couldn't see any other differences.

  • Saied 349 posts 674 karma points
    Sep 09, 2016 @ 21:22
    Saied
    0

    Hi Dan,

    Mysteriously, it just started working with my existing settings. When I set it to Detailed and PassThrough, I could not get it to work, but the other way did.

    By the way, I love your projects. I use them all the time.

    Thanks, Saied

Please Sign in or register to post replies

Write your reply to:

Draft