Copied to clipboard

Flag this post as spam?

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


  • Pinal Bhatt 298 posts 390 karma points
    Mar 08, 2011 @ 15:02
    Pinal Bhatt
    0

    404 handler not working for me in 4.7RC

    Below are my config settings. I have a template called Rss (the one that comes with starter kit).

    I am expecting /Rss.aspx url to work, but i get page not found error as methioned below.

    Web.Config:

    <customErrors mode="Off" />

    umbracoSettings.config

        <errors>
         
    <!-- the id of the page that should be shown if the page is not found -->
         
    <!--        <errorPage culture="default">1</errorPage>-->
         
    <!--        <errorPage culture="en-US">200</errorPage>-->
         
    <error404>1</error404>
       
    </errors>

    404handlers.config

    <NotFoundHandlers>
     
    <notFound assembly="umbraco" type="SearchForAlias" />
     
    <notFound assembly="umbraco" type="SearchForTemplate"/>
     
    <notFound assembly="umbraco" type="SearchForProfile"/>
     
    <notFound assembly="umbraco" type="handle404"/>
    </NotFoundHandlers>

     

    Error message:

    Page not found

    No umbraco document matches the url 'http://pbdesk.com/rss.aspx'

    umbraco tried this to match it using this xpath query'/root/* [@urlName = "rss"] | /root/*/* [@urlName = "rss"]')

    This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.

    For more information, visit information about custom 404 on the umbraco website.

    This page is intentionally left ugly ;-)

  • Pinal Bhatt 298 posts 390 karma points
    Mar 08, 2011 @ 15:03
    Pinal Bhatt
    0

    Further this was not working for me in 4.6.1 as well as 4.7 beta  and now in 4.7RC

  • Pinal Bhatt 298 posts 390 karma points
    Mar 09, 2011 @ 15:09
    Pinal Bhatt
    0

    Hi Community - any help?

  • Samuel Hamer 44 posts 66 karma points
    Mar 09, 2011 @ 15:22
    Samuel Hamer
    0

    Is your problem that the page is not working or that you wanting a custom 404 page?

  • Pinal Bhatt 298 posts 390 karma points
    Mar 09, 2011 @ 15:43
    Pinal Bhatt
    0

    As I have template named "Rss", I am expecting that /Rss.aspx should work fine, but instead i get 404 error.

  • Samuel Hamer 44 posts 66 karma points
    Mar 09, 2011 @ 16:41
    Samuel Hamer
    0

    The naming of pages is based on the page title as a default, not the template.  If you NEED a page to have a specific url look into the umbracoUrlName property.  Though if you do not need to and you just need to link to this page, link to the Id instead (using umbraco.library:NiceUrl in xslt for intance)

  • Pinal Bhatt 298 posts 390 karma points
    Mar 15, 2011 @ 15:04
    Pinal Bhatt
    0

    Anybody any help

  • 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