Welcome to WebmasterWorld Guest from 54.167.153.63

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

WAMP document root change

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

5+ Year Member



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

2:04 pm on Nov 30, 2008 (gmt 0)

5+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month