Even nicer URLs in Umbraco

A lot of people like to have nice URLs in their website. That’s quite understandable, since it makes them easier to understand and also easier for search engines to read. Umbraco have a build in nice URL engine that makes URLs almost as nice as I would like to, except for the .aspx extension

To remove the .aspx extension from Umbraco solutions you need to do two things

I) Set the umbracoUseDirectoryUrls to true in web.config

II) Set up IIS to accept wild card mapping

1) Right click your website in IIS and choose properties
2) Go to the Home folder tab
3) Click configuration

In IIS5 (W2K)
4) Click the Add button
5) Add the following values:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
.*
Limit to: GET,HEAD,POST,TRACE
Uncheck the verify file exists

In IIS6 (W2K3)
4) Click the Insert button in the “Wildcard application maps” area
5) Add the following values:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
Uncheck the verify file exists

3 Comments

MikaelMay 28th, 2009 at 11:41

Ahh thanks.

This was a godsend for me, combined with umbracoUrlAlis it made my day.

karstenMay 3rd, 2010 at 18:31

Nice one!

JacquesJuly 24th, 2011 at 12:18

This remark ‘Set the umbracoUseDirectoryUrls to true in web.config’ was the thing I needed. Thanks for that!

Leave a comment

Your comment