I’m using IIS7 and Umbraco 4 to run a clients site but I’m having issues browsing to pages with extensionless URLS.
The site is running several languages which are separated by Umbraco Folders. What I want to do is use the primary domain (.com) for all sites and request a specific one using the abbreviated country name i.e. mydomain.com/es (for spanish site). The trouble is I can only access the page by using the .aspx extension i.e. mydomain.com/es.aspx and without the extension i get a 404 error.
It’s been suggested that I add the page I am requesting as a default dosument in IIS but this has not worked.
I’ve also tried setting the “umbracoHideTopLevelNodeFromPath” value to false but this makes no difference.
The system will be migrated to the clients servers once complete so I don’t really want to add URL rewriting rules within IIS so is there anything I’ve missed which will allow me to do this?
Thanks
so, you want to browse with directory url’s then,
this is very mutch possible.
first, open your web.config
find the line below, and make sure the value is set to true
then, you will need to add a wildcard mapping in IIS
the steps you will need to take in IIS7 are explained in this post:
[http://learn.iis.net/page.aspx/508/wildcard-script-mapping-and-iis-7-integrated-pipeline/][1]
and if you would ever need to do this on IIS6
c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
Done
[1] : http://learn.iis.net/page.aspx/508/wildcard-script-mapping-and-iis-7-integrated-pipeline/