How to remove the Virtual Directory in the links for my media files?

Topics: General, Troubleshooting
Apr 2, 2015 at 3:07 PM
Edited Apr 3, 2015 at 12:54 AM
I have started a new orchard project and I uncheck Use IIS Express in my Orchard.web property's Web section and change the Project Url to http :// localhost/ TestOrchard,
then I press Create Virtual Directory.
I uploaded some pictures in my Media folder and use it in my homepage.
Everything seems ok when I view it locally.

But when I deploy it to my website, the link pointing to the media file becomes
/TestOrchard/Media/Default/image/flower.PNG
Since the TestOrchard folder does not exist in the remote server, media files cannot be read and also the media tab on my Admin control panel shows nothing.

How do I remove the unwanted TestOrchard/ reference?