Moving Orchard site to another virtual folder, Media paths all broken

Topics: Administration, Core, Customizing Orchard, General
Apr 28, 2014 at 4:55 PM
Hi All,

I need some help in finding a solution for this. My Orchard site was hosted on a sub-folder on a server, let's say www.example.com/mysite. Now I moved everything to another server, but without subfolders: www.another.com/

Everything works but all the images path are broken because they have "/mysite" at the start... Is there a quick and painless way to change this? and moreover is theer a way to prevent this from happening in the future? I remember tryin to modify the TinyMce control to put a "~/" in place but this works only if the page is rendered through Razor, which does not happen in this case since the body is simply outputted to the already rendered page.

Any ideas?