Copied to clipboard

Flag this post as spam?

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


  • James Crowley 17 posts 38 karma points
    Sep 17, 2009 @ 11:25
    James Crowley
    0

    Hooking up the 404 handler

    Hi Chris - sorry, another newbie question for you! I've got the niceUrl extension working as expected, so it links through without the dates appearing in the Url. However, going to the Url results in a 404. How do I hook up the 404 handler in your code to the web app? I couldn't seen any instructions on how to do this?

    Many thanks

    James

  • Chris Koiak 700 posts 2626 karma points
    Sep 17, 2009 @ 14:58
    Chris Koiak
    0

    There is a config file at config/404handlers.config.

    An entry should have been written in there similar to

    <NotFoundHandlers>
    <notFound assembly="AutoFolders" type="NotFoundHandler"/>
    </NotFoundHandlers>
  • James Crowley 17 posts 38 karma points
    Sep 17, 2009 @ 16:02
    James Crowley
    0

    Yep, that's there... but I'm still getting the 404?

    I've set the TruncatedFolderUrl to "hardware/". The niceUrl outputs "hardware/the-name-of-the-content" but I can only actually access the page via "hardware/2009/09/09/the-name-of-the-content"

    Any ideas? Thanks for your help Chris, much appreciated.

  • Chris Koiak 700 posts 2626 karma points
    Sep 17, 2009 @ 16:25
    Chris Koiak
    0

    ahh, try switching on on '.aspx' extensions... shouldn't be an issue, but lets rule it out.

    Chris

  • James Crowley 17 posts 38 karma points
    Sep 17, 2009 @ 16:43
    James Crowley
    0

    Chris,

    Just tried turning it off, and going back to .aspx urls, but the same problem still occurs. 

    Thanks

    James

  • James Crowley 17 posts 38 karma points
    Sep 17, 2009 @ 16:45
    James Crowley
    0

    Chris,

    If it's easier, I'd be happy to give you admin access to the admin console - we're only in very early stages so there's nothing valuable in there!

    You can get in touch via james at developerfusion dot com

    Thanks,

    James

  • Chris Koiak 700 posts 2626 karma points
    Sep 17, 2009 @ 17:01
    Chris Koiak
    1

    Try specifying a TruncatedURL

    <?xml version="1.0" encoding="utf-8" ?>
    <Settings>
    <FolderProviders>
    <FolderProvider alias="DateFolder"
    assembly="/bin/AutoFolders"
    type="AutoFolders.Providers.DateFolderProvider"
    TruncatedFolderUrl="folder-1/folder-2/newsitems">

    The TruncatedFolderUrl should be the path to the parent node (not including domain name).

  • James Crowley 17 posts 38 karma points
    Sep 17, 2009 @ 17:05
    James Crowley
    0

    Hi Chris,

    I've already set the TruncatedFolderUrl property to "hardware/" (which is the path to the parent node).

    Thanks

  • James Crowley 17 posts 38 karma points
    Sep 17, 2009 @ 17:09
    James Crowley
    0

    Chris, sorry, I've figured it out. The trailing slash was the problem - if I remove it everything works fine.

    Thanks

    James

  • Chris Koiak 700 posts 2626 karma points
    Sep 17, 2009 @ 17:13
    Chris Koiak
    0

    cool!

Please Sign in or register to post replies

Write your reply to:

Draft