Announcement

Collapse
No announcement yet.

IIS 7 Path question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • IIS 7 Path question

    I have a site I developed on a MAC that uses the full path to images, the css files, etc. For example the path to the images is /pm/images where index.html is within /pm. When I upload the site and configure in IIS7 the site is still looking for /pm/xxx. How can I drop the /pm or look within itself for the resources?

  • #2
    Re: IIS 7 Path question

    So in the <img> tags, you've entered "/pm/images/filename" as the src rather than just "images/filename"?

    You can drop this by editing all of the files and removing "/pm/" from the src attributes... not really sure what else you could expect to do really. I see no benefit to specifying absolute paths in your situation.
    Gareth Howells

    BSc (Hons), MBCS, MCP, MCDST, ICCE

    Any advice is given in good faith and without warranty.

    Please give reputation points if somebody has helped you.

    "For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb.

    "Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three.

    Comment


    • #3
      Re: IIS 7 Path question

      OK, I think I answered my own question. I created a virtual Directory within the site and pointed it to the site root and this seems to have fixed the issue. Anyone know of a better way?

      Also, is there anything special that needs to be done to run jquery scripts on a page? ANy permission settings, Handler Mappings, etc?

      Comment


      • #4
        Re: IIS 7 Path question

        Originally posted by gforceindustries View Post
        So in the <img> tags, you've entered "/pm/images/filename" as the src rather than just "images/filename"?

        You can drop this by editing all of the files and removing "/pm/" from the src attributes... not really sure what else you could expect to do really. I see no benefit to specifying absolute paths in your situation.
        Thanks for the reply. I can certainly do this, and may but it will be a lot of work. I guess that is what I get for using a mac and using apache as the test server.

        Comment


        • #5
          Re: IIS 7 Path question

          Not at all - you just need to not use absolute paths...

          FYI you can edit posts to add to them, rather than posting twice in a row.
          Gareth Howells

          BSc (Hons), MBCS, MCP, MCDST, ICCE

          Any advice is given in good faith and without warranty.

          Please give reputation points if somebody has helped you.

          "For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb.

          "Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three.

          Comment

          Working...
          X