API Questions on Kentico API.
Version 6.x > API > Hide Extension URL View modes: 
User avatar
Certified Developer 8
Certified Developer 8
Atul Patel - 7/9/2013 4:23:50 AM
   
Hide Extension URL
Hi

I am using Kentico 6.0 CMS.
I am facing with one problem of URL extension.

when i cllick on any button on my site, automatically append .aspx extension with my url.
I don't want to append this url.
e.g. Before postback url is www.xyz.com/abc
After postback url is www.xyz.com/abc.aspx

I want url like www.xyz.com/abc without aspx extension.

Can you please provide solution for this issue?

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_filipl - 7/9/2013 4:34:42 AM
   
RE:Hide Extension URL
Hi,

Please follow the official documentation which contains a step-by-step guide for setting extensionless URLs - Developer's Guide - Custom URL extensions and extensionless URLs.

Best regards,
Filip Ligac

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 7/9/2013 1:10:07 PM
   
RE:Hide Extension URL
In the documentation link Filip posted you want to pay special attention to the appSettings key
<add key="CMSUseExtensionOnPostback" value="false" />
This will resolve your issue.

User avatar
Certified Developer 8
Certified Developer 8
Atul Patel - 7/25/2013 9:07:11 AM
   
RE:Hide Extension URL
Thanks a lot FroggEye for your reply.


Thanks,
Atul Patel