homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

WAMP document root change

5+ Year Member

Msg#: 3796689 posted 7:50 pm on Nov 29, 2008 (gmt 0)


I think I'm having some trouble with the document root in wamp and would really appreciate some help.
When using wamp i usually put a new website inside its own folder (that in turn inside the localhost/www or in other words the C:/wamp/www folder)
So for example localhost/www/mywebsite

I have copied a website to WAMP to make some changes.

The previous web designer used / (forward slash) for all the path references. So it looks for the rest of the path starting from the root folder (www.example.com/)
They also used many php includes from many sub folders, which is fine for a live website, but it doesn't work in WAMP because:

WAMP looks in localhost/www
instead of

causing it to look in the wrong place for every statement e.g. -
<img src="/image.gif"> wouldn't be found in localhost/www (as my project is in the 'mywebsite' folder: localhost/www/mywebsite.

I might be missing some simple trick here, from a quick look on the web I assume it is a problem with the WAMP document root? I may be wrong though :)

I don't really want to go through and change all of the path statements there are several hundred pages, so any help would be appreciated :)

thanks :)



5+ Year Member

Msg#: 3796689 posted 2:04 pm on Nov 30, 2008 (gmt 0)

it's ok after posting I think I figured it out :)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved