Copied to clipboard

Flag this post as spam?

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


  • Richard Kessler 1 post 21 karma points
    May 17, 2011 @ 01:48
    Richard Kessler
    0

    Virtual Directory and URL path problems

    I placed my Umbraco site (4.7) in a virtual directory under IIS 6. I cannot get the URL paths to cooperate. For some reason the IIS 'application' is not recognized as the root of the site. For example: 

    My site has a virtual directory alias of "MySite" located in a directory called MySite under inetpubs/wwwroot.

    My style sheet link references:

    <link rel="stylesheet" type="text/css" href="/css/mysite.css" media="all" />

    What I get is:

    http://servername/css/mysite.css NOT http://servername/MySite/css/mysite.css

    Consequently all my css and other references to scripts etc. are not working. I have read that 4.5.1 corrects all of the Virtual Directory issues, but I am still stuck.

    I have the site set up as an 'application' in IIS but no luck on the URLs. Any help greatly appreciated.

  • Jonas 123 posts 206 karma points
    Nov 28, 2014 @ 09:33
    Jonas
    0

    IS there a solution to this issue?

  • Christina Carter 12 posts 93 karma points
    Mar 18, 2016 @ 19:11
    Christina Carter
    0

    Any solution?

  • Aristotelis Pitaridis 84 posts 402 karma points
    Mar 18, 2016 @ 20:24
    Aristotelis Pitaridis
    0

    Try this:

    <link rel="stylesheet" type="text/css" href="@Href("~/css/mysite.css")" media="all" />
    
  • Dincer M. 35 posts 97 karma points
    May 20, 2016 @ 07:28
    Dincer M.
    0

    I have the same problem with virtual directory. All the links are messed up.

    Example:

    I installed as a Virtual Directory called daily, but my links are like this:

    <img width="500" height="224" src="/media/7460/logo.jpg" alt="logo">
    

    but it should be like this:

    <img width="500" height="224" src="/daily/media/7460/logo.jpg" alt="logo">
    
  • Prashant 8 posts 78 karma points
    Aug 22, 2016 @ 16:00
    Prashant
    0

    Hi Guys,

    I have resembling issue, please help!!

    I have configured an umbraco 7.3.1 website in IIS successfully and is working fine. Now, i have a requirement to add this Umbraco 7.3.1 Website to be inside a virtual directory converted to application in another parent website (Umbraco 7.3.1). But there is an issue while running that 7.3.1 site as subsite. When i tried to access this site as for example like, Umbraco7.3.1site/Umbraco7.3.1Subsite. We are getting the follwing error.

    enter image description here

    Please provide your solutions for it, i have wasted almost a week over it.

    My route for the 7.3.1 site is: "D:\delete me\UmbNewInstances\Parent" Route for the 7.3.1 subsite is: "D:\delete me\UmbNewInstances\Child"

    Let me know if someone wants any input from my side.

Please Sign in or register to post replies

Write your reply to:

Draft