In an Umbraco 4.7.0 project I would like to have an /images folder in which I will put (image) files and I will refer to those files from the markup and css.
Now, if I refer to one of the images files in my images folder I get the following error:
No umbraco document matches the url 'http://www.website.local/login.aspx?ReturnUrl=/images/image1.jpg'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "login"] | /root/*/* [@urlName = "login"]')
Pretty strange xpath to attempt to match, but I guess it is Umbraco's request handler that catches the request, so I have tried adding /images/ to the umbracoReservedPaths key in web.config which did not change anything. I have also tried adding both /images and ~/images/, all causing the same error.
So ppl, please explain to me what I am missing here or how image files living somewhere under the same root domain is supposed to be handled in Umbraco 4.7.0.
umbracoReservedPaths - what am I missing?
In an Umbraco 4.7.0 project I would like to have an /images folder in which I will put (image) files and I will refer to those files from the markup and css.
Now, if I refer to one of the images files in my images folder I get the following error:
No umbraco document matches the url 'http://www.website.local/login.aspx?ReturnUrl=/images/image1.jpg'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "login"] | /root/*/* [@urlName = "login"]')
Pretty strange xpath to attempt to match, but I guess it is Umbraco's request handler that catches the request, so I have tried adding /images/ to the umbracoReservedPaths key in web.config which did not change anything. I have also tried adding both /images and ~/images/, all causing the same error.
Next thing I tried as workaround was adding the files in a subfolder for the css folder (this is done in at least one of the skins so I figure I could do the same). Partial success. Now I can see image1 on the page and I can refer to it directly like http://www.website.local/css/subfolder/image1.jpg. But the strange thing is that this does not work for image2, 3 and 4. Lol. http://www.website.local/css/subfolder/image1.jpg works, but http://www.website.local/css/subfolder/image2.jpg and so forth still gives me the same error.
So ppl, please explain to me what I am missing here or how image files living somewhere under the same root domain is supposed to be handled in Umbraco 4.7.0.
Thank you in advance.
In your web.config in AppSettings there is a "umbracoReservedPaths" key. Add images to it.
Sounds a little strange - I've never had to add /images/ to umbracoReservedPaths to get this working.
It seems the webserver has been misconfigured to treat .jpg extension as a document and not a static image file.
/Chriztian
is working on a reply...