homepage Welcome to WebmasterWorld Guest from 54.205.189.156
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
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
James1




msg:3796691
 7:50 pm on Nov 29, 2008 (gmt 0)

Hi,

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
localhost/www/mywebsite

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 :)

 

James1




msg:3796967
 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