Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sean Williams 3 posts 23 karma points
    Mar 22, 2012 @ 06:59
    Sean Williams
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies