We're in the process of setting up our Umbraco installation in a subdirectory of a site - so, for example, http://www.domain.com/umbracoinstallation/. We're trying to get everything so it supports this setup, which has been tricky, since the absolute paths point to the root domain (like /media/1234/image.jpg).
We've tried one solution, which is to modify every absolute path so it starts with /umbracoinstallation. So, instead of /media/1234/image.jpg, we have /umbracoinstallation/media/1234/image.jpg. This has been working pretty smoothly, until we go to update the content through the editor. Whenever we update a page, it automatically converts an image with the URL of /umbracoinstallation/media/1234/image.jpg back to /media/1234/image.jpg.
So, we're wondering, either: 1. Is there a better way to approach this? Having every URL start with /umbracoinstallation doesn't seem like the best approach, but it's the only way we've gotten things working so far. (Setting up the site in a subdomain, like umbracoinstallation.domain.com is not an option for us, unfortunately.) 2. Or, is there a way to modify the editor so it doesn't automatically rewrite media URLs when saving content?
Any help would be greatly appreciated, thank you =D
Content Editor Rewriting Media URLs
We're in the process of setting up our Umbraco installation in a subdirectory of a site - so, for example, http://www.domain.com/umbracoinstallation/. We're trying to get everything so it supports this setup, which has been tricky, since the absolute paths point to the root domain (like /media/1234/image.jpg).
We've tried one solution, which is to modify every absolute path so it starts with /umbracoinstallation. So, instead of /media/1234/image.jpg, we have /umbracoinstallation/media/1234/image.jpg. This has been working pretty smoothly, until we go to update the content through the editor. Whenever we update a page, it automatically converts an image with the URL of /umbracoinstallation/media/1234/image.jpg back to /media/1234/image.jpg.
So, we're wondering, either:
1. Is there a better way to approach this? Having every URL start with /umbracoinstallation doesn't seem like the best approach, but it's the only way we've gotten things working so far. (Setting up the site in a subdomain, like umbracoinstallation.domain.com is not an option for us, unfortunately.)
2. Or, is there a way to modify the editor so it doesn't automatically rewrite media URLs when saving content?
Any help would be greatly appreciated, thank you =D
Sean
is working on a reply...