• Not Answered

No 404 layout found when accessing sitecore using localhost

No layout found when accessing /sitecore using localhost. I get a redirect to 404 with this url localhost:15279/404 .No layout found when accessing /sitecore but we also have 404.cshtml layout. 

 

It was working fine before restoring the DB. There was some issue that’s why we need to restore the DB (web,core,master,analytics). But now it is not working 

 

I get a redirect to 404 and the url changes to /404?item=%2f&user=extranet%5cAnonymous&site=safestyle but still it's not redirect to 404 layout. 

1 Reply

  • It's hard to say, what could be an issue on exactly your case, but according to the docs you have Item Not Found property:

    If IIS uses ASP.NET to process a request, and no processor aborts the httpRequestBeginpipeline,and the requested URL does not correspond to a Sitecore media item, a content item within the context site,or a file on disk,then Sitecore activates the URL specified by the valueattribute of the /configuration/sitecore/settings/settingelement in web.configwith nameItemNotFoundUrl

    you can read more here:
    doc.sitecore.com/.../handling-http-404-sc60-a4.pdf