Installation and deployment
Version 3.x > Installation and deployment > 404 & Friendly URLs View modes: 
User avatar
Member
Member
LC - 12/16/2009 10:38:10 PM
   
RE:404 & Friendly URLs

Hi,

I tried:
currentContext.Response.StatusCode = 404;
currentContext.RewritePath(notFoundUrl);

in function private static void RedirectToPageNotFound(SiteNameOnDemand siteName) in Global.asax.cs, still return 302 rather than 404 status code for the pages not found.

Is it a Kentico bug?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/23/2009 1:28:52 AM
   
RE:404 & Friendly URLs
Hi,

Which version of Kentico CMS are you using? This thread is for 3.x versions. Could you please also describe us your current settings of the page not found? I believe you have tried the suggestions mentioned here, but we need to know what is your current configuration and what you had tried before and what you want to achieve.

Thank you.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
pphillips-lssne - 12/30/2009 11:58:22 AM
   
RE:404 & Friendly URLs
I'm eagerly awaiting the simple solution. Just thought I'd chime in.

User avatar
Member
Member
Mufasa - 1/22/2010 2:33:36 PM
   
RE:404 & Friendly URLs
So, when is this going to be fixed directly in Kentico? It still has the same behavior in v4.1.

The "Page not found URL" setting really needs to send the correct HTTP status code and serve the file directly under the same requested URL, instead of doing a redirect. Otherwise any crawler that hits it will be confused, especially search engines.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/27/2010 3:48:57 AM
   
RE:404 & Friendly URLs
Hi,

I forwarded this to our developers and it seems to be bug. They are investigating it right now and probably it will be fixed in the next hotfix package. Thank you about letting us know about this.

Best Regards,
Juraj Ondrus

1 2