Relative Folders Links
Posted by: Steveiwonder (---.globalcrossing.com)
Date: October 08, 2011 11:21AM

Hello All,

I'm using wamp to test a website which i have been asked update. The problem is with path links to images css files etc.

all of the links to images look like this.

<img src="/images/img1.png" />
<link media="screen" href="/styles/default.css" type="text/css" rel="stylesheet">

all of the locations start with a "/" which works fine.

However now i have downloaded this to a local project and im running it through want, it doesn't seem to see any of the images/css files unless i stop the leading "/"

I don't really wan't to have to go through every file and remove all the "/" then re add them later on.

Is there some kind of config change i can make to wamp to support the leading "/"?

Thanks

S

Options: ReplyQuote
Re: Relative Folders Links
Posted by: Steveiwonder (---.globalcrossing.com)
Date: October 08, 2011 11:30AM

I have managed to fix the issue by changing the document root in the httpd.conf

My bad.

Thanks



Edited 1 time(s). Last edit at 10/08/2011 11:30AM by Steveiwonder.

Options: ReplyQuote


Sorry, only registered users may post in this forum.