I am using Umbraco 7. I built the site in Umbraco and created virtual directory for it in IIS. After doing that, none of my paths are working for JS, CSS, images or media files. Before putting it in IIS I had the relative paths as "../Images/test.jpg", but now after moving to IIS, I need to change paths on every place to "../VirtualDirectoryName/Images/test.jpg" to make it working.
Is there a way to solve this issue without changing every single link.
SJ have you tried instead of using virtual directory adding an application? Is your new umbraco within the shell of the other site? Before you go changing everything.. I would look at the application option instead.
Relative paths in Virtual Directory
I am using Umbraco 7. I built the site in Umbraco and created virtual directory for it in IIS. After doing that, none of my paths are working for JS, CSS, images or media files. Before putting it in IIS I had the relative paths as "../Images/test.jpg", but now after moving to IIS, I need to change paths on every place to "../VirtualDirectoryName/Images/test.jpg" to make it working.
Is there a way to solve this issue without changing every single link.
Please help!
Thanks, SJ
SJ have you tried instead of using virtual directory adding an application? Is your new umbraco within the shell of the other site? Before you go changing everything.. I would look at the application option instead.
Hello Mac,
Thanks for your reply. I tried adding it as Application but still no luck. Umbraco is not in another shell either. Any other suggestions?
Hi Try changing your paths to start with a forward slash like this
That's what works on mine.
Thanks Paul for your reply. No, its not working for me. I tried it while adding the website as application in IIS too.
It may be a long shot but check you have read/write permissions set on the windows folder of your web project for IIS_USRS and IUSR.
SJ from what I understand you have umbraco running as its own website. You have another website running that you want to roll umbraco into. Have you considered just reverse proxying (s/p) the umbraco site into your other one? Its a pretty simple method once you have installed Application Request Routing in IIS. Take a look at this article. http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
We are using it with a very high degree of success.
is working on a reply...