• Umbraco Version: 4.0.3
• asp.net version: 3.5
• Windows and iis version: Windows Server 2008 with IIS 7
• Detailed description:
I am having issues with IIS and Umbraco and the umbracoReservedPaths
key. Removing the trailing slash from /blog, for example, doesn't fix
the issue. I have tried url rewrites in IIS as well, but it wont really
fix the issue because IIS is having problems determining the difference
between files and folders. Is there a way to have Umbraco allow the
removal of the trailing slashes for values in the umbracoReservedPaths
key? ..or, is there a rewrite rule I can use to solve this problem if Umbraco will not accept reservedPaths without the trailing slash?
For reference, my rewrite rule is: (and I have tried many variations
of this configuration)
I am running Umbraco 4.5.2 on IIS 6.0 and ASP.Net 4.0.
I have a site that has some folders that contain non-umbraco pages. Some of these folders have only a default.asp file in them. Currently users access these folders using short, friendly URLs like: http://www.mysite.com/abc ; Where abc is a folder with one default.asp file in it (which does a redirect to a longer, uglier URL).
I have tried: <add key="umbracoReservedPaths" value="~/umbraco, ~/abc,~/abc/" />
This allows this URL to work: http://www.mysite.com/abc/ But if they us http://www.mysite.com/abc then
I get the Umbraco 404 error and the default.asp file is not found. Umbraco seems to try and parse the URL without the /
Page not found
No umbraco document matches the url 'http://www.mysite.com/abc'
Is this an Umbraco or an IIS issue?
Is there any other way to handle these type of shortcut landing page type URLs?
Yes. It seems that I needed to put the paths in the umbracoReservedUrls instead of the umbracoReservedPaths. you an put a specific file there or a folder.
So in my example below both the webinars and demos folders are off my root and contain a default.aspx file (and other associated files) that I want Umbraco to ignore.
umbracoReservedPaths trailing slash
• Umbraco Version: 4.0.3
• asp.net version: 3.5
• Windows and iis version: Windows Server 2008 with IIS 7
• Detailed description:
I am having issues with IIS and Umbraco and the umbracoReservedPaths key. Removing the trailing slash from /blog, for example, doesn't fix the issue. I have tried url rewrites in IIS as well, but it wont really fix the issue because IIS is having problems determining the difference between files and folders. Is there a way to have Umbraco allow the removal of the trailing slashes for values in the umbracoReservedPaths key? ..or, is there a rewrite rule I can use to solve this problem if Umbraco will not accept reservedPaths without the trailing slash?
For reference, my rewrite rule is: (and I have tried many variations of this configuration)
<rule name="AddTrailingSlash" stopProcessing="true">
<match url="(.*[^/])$" />
<conditions>
<add input="{REQUEST_URL}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URL}" matchType="IsFile" negate="true" />
</conditions>
<action type="Redirect" url="{R:1}/" />
</rule>
Instead of the rewriting, I find that this works and is much simpler (in this case, "test" is the reserved path):
Thanks Sebastiaan! That worked!
I am running Umbraco 4.5.2 on IIS 6.0 and ASP.Net 4.0.
I have a site that has some folders that contain non-umbraco pages. Some of these folders have only a default.asp file in them. Currently users access these folders using short, friendly URLs like: http://www.mysite.com/abc ; Where abc is a folder with one default.asp file in it (which does a redirect to a longer, uglier URL).
I have tried: <add key="umbracoReservedPaths" value="~/umbraco, ~/abc,~/abc/" />
This allows this URL to work: http://www.mysite.com/abc/ But if they us http://www.mysite.com/abc then I get the Umbraco 404 error and the default.asp file is not found. Umbraco seems to try and parse the URL without the /
Page not found
No umbraco document matches the url 'http://www.mysite.com/abc'
Is this an Umbraco or an IIS issue?
Is there any other way to handle these type of shortcut landing page type URLs?
@Janet, did you fix this? I have exactly the same problem. And am trying the same things,
Yes. It seems that I needed to put the paths in the umbracoReservedUrls instead of the umbracoReservedPaths. you an put a specific file there or a folder.
So in my example below both the webinars and demos folders are off my root and contain a default.aspx file (and other associated files) that I want Umbraco to ignore.
< addkey="umbracoReservedUrls"value="~/install/default.aspx,~/webinars,~/demos"
/>
Perfick! Not sure why it started ignoring values in umbracoReservedPaths... Oh well. Thanks v much, we use those a lot so that's a big help.
is working on a reply...