Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Custom Error pages not working View modes: 
User avatar
Member
Member
guillaume.marquilly-tv5monde - 3/14/2013 4:20:19 AM
   
Custom Error pages not working
Hello,

I followed this documentation (I have 6.0.58 SP1) but I can not setup properly any custom error pages.

I added a 404.html page in the CMSMessages folder, and then added in the web.config (section system.web)
<customErrors defaultRedirect="~/CMSMessages/404.html" mode="On">
<error redirect="~/CMSMessages/404.html" statusCode="404" />
</customErrors>

I try to restart the website from IIS but when I type a not existing page url like http://dev-asia.tv5monde.com/Res.aspx, I still have the kentico error page instead of mine
Server Error

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Thank you for your advices !

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 3/14/2013 4:28:08 AM
   
RE:Custom Error pages not working
Hello,

As first could you please tell me which version of IIS are you running on?
Are you using extensionless URLs?

Best regards,
Martin Danko

User avatar
Member
Member
guillaume.marquilly-tv5monde - 3/14/2013 9:02:22 PM
   
RE:Custom Error pages not working
Hello Martin,

I'm using IIS 7.5 and yes I use extensionless URLs

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 3/18/2013 8:50:11 AM
   
RE:Custom Error pages not working
Hello,

I don't know which Documentation were you following before because there is no link. But take a look at the section: Configuring Custom Error Pages and especially Custom Url Extensions IIS7.

I hope this will help you.

Best regards,
Martin Danko