I have a website developed using Umbraco 7.3 and it's working perfectly without any problems if I installed as a website under IIS 7.5, the problems started when I want to use as a virtual directory.
I was able to solve the 2nd and 3rd problems using the following:
<ResolveUrlsFromTextString>true</ResolveUrlsFromTextString>
under <content>
in the umbracoSettings.config file in Config folder."/js/*" to "~/js/*"
and "/css/*" to "~/css/*"
.but the 1st problem of the images still I couldn't solve, any help will be appreciated.
After a lot of searches, finally I was able to make it work without a single problem, following are the steps I did to implement Umbraco 7.x website as a virtual directory:
<ResolveUrlsFromTextString>true</ResolveUrlsFromTextString>
between the <content>
tag."/js/*" to "~/js/*"
& "/css/*" to "~/css/*"
also Add runat="server"
attribute to the <head>
tag or to each .CSS link in the header like this example: <link href="~/Css/main.css" rel="stylesheet" type="text/css" runat="server"/>
like the image: UPDATE cmsPropertyData set dataNvarchar = replace(dataNvarchar, '/media/','/replaceWithvirDirNameHer/media/')
where dataNvarchar like '/media/%'
and don't forget to change replaceWithvirDirNameHer with the actual virtual directory name.Restart the IIS and republish entire site like the image:
Some links may not reflect the changes and this is due to its path is fixed, so we need also to do them and not to forget, like the image:
I hope this will help.