ASPX templates
Version 6.x > ASPX templates > Automatically add ASPX extension? View modes: 
User avatar
Member
Member
ovidiu-e-cubed - 11/25/2011 7:01:07 AM
   
Automatically add ASPX extension?
Hi,

Can Kentico be set up such that it adds automatically the .aspx extension to a url, in case the user omits it?

Example.

If the user types in

www.mywebsite.com/about

then, instead of going to a 404 not found page, it should 301 redirect to


www.mywebsite.com/about.aspx

I added this in my web.config but didn't seem to work:

<add key="CMSRedirectAliasesToMainURL" value="true" />

User avatar
Kentico Support
Kentico Support
kentico_janh - 11/25/2011 7:59:49 AM
   
RE:Automatically add ASPX extension?
Hello,

Yes, it can be done, so please read the following article in our Developer's Guide, which describes how to set extension-less URLs for your site.

http://devnet.kentico.com/docs/6_0/devguide/index.html?configuration_of_extensionless_urls.htm

Best regards,
Jan Hermann