Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > Questions about extensionless URLs View modes: 
User avatar
Member
Member
matt.barry-stockhouse - 5/11/2012 1:48:19 PM
   
Questions about extensionless URLs
I have a Kentico 6.0 site running on IIS7 and configured for extensionless URLs.

1) Even though I have configured extensionless URLs, Kentico still serves pages with .aspx extensions. Is it possible to return a 404 error instead?

2) I have a CSS menu list web part that renders my home node as www.mysite.com/home. Is there any way to render that node as www.mysite.com instead?

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_radekm2 - 5/14/2012 1:21:07 AM
   
RE:Questions about extensionless URLs
Hello.

Regarding first question, you could take an advantage of this article dealing with something similar: http://devnet.kentico.com/Knowledge-Base/API-and-Internals/How-to-set-pure-extension-less-URLs-without-suppor.aspx

What you have to change is the last code sample. In your case, you will redirect any request without aspx extension to 404 page.

Regarding second question, you could replace this particular string in output html code, using RenderedHTML property.

Best Regards,
Radek Macalik