• 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.