Site structure
Version 3.x > Site structure > Friendly URLS and IIS 7 View modes: 
User avatar
Member
Member
jsimone - 7/24/2008 5:44:33 PM
   
Friendly URLS and IIS 7
Hi, I am using Kentico 3.0 and I have been trying to change the Friendly URL extension but can't get it to work. Part of the problem may be that I am not used to IIS 7, so any help you can provide is much appreciated.

The result I would like is a blank URL extension, but I have also tried changing it to .html with no luck. When I do make the change, Kentico's internal links point to the proper locations, but when attempting to load them I get server errors.

Do I need to make an IIS change to get these to work, or is there a Kentico setting I am missing?

If it's IIS, should I add Handler Mappings, or should I download the URL Rewrite Module and actually rewrite the URLs to .aspx?

Thanks,

Jason Simone

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/25/2008 1:15:30 AM
   
RE:Friendly URLS and IIS 7
Hi,
Yes, you need to configure the IIS. It is very similar to this description - http://www.kentico.com/docs/devguide/configuration_of_extension_les.htm. But in IIS7 you need to go here to edit the error pages:
1) Go to IIS7 manager
2) Select your site
3) Go to Error pages
4) Change 404 and 405 to /<virtual_dir>/CMSPages/handler404.aspx
5) Click "Edit feature settings ..." on the left and set "Custom error pages" option

I hope it helps.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
jsimone - 7/25/2008 12:06:42 PM
   
RE:Friendly URLS and IIS 7
Well, in the mean time, I installed the IIS 7 URL Rewrite module and I am rewriting extensionless URLs to their .aspx variants and things have been working.

Would you be able to tell me if there are any down sides to this approach, or anything else that I might run in to?

Thanks,

Jason

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 7/29/2008 5:49:40 AM
   
RE:Friendly URLS and IIS 7
Hi Jason,

There is more than one option how to solve this extension-less URL issue. If everything is working just fine for you using IIS 7 URL Rewrite module you can hold with this approach. There shouldn’t be any down side. We are not aware of any problems using
IIS 7 URL Rewrite module so far.

Best Regards,
Miroslav Remias