Thank you. I've installed MAMP and got it working well, but the trouble is I have several domains I look after all in a folder called Design.
If I set the MAMP Apache Document Root to the Design folder, the leading '/' in the HTML takes Coda back to this root. The only way round is to set the MAMP Root each time to the correct sub folder in the Design bin, but with multiple sites that's a bit of a nightmare ....
Oh well!!
You can set up virtual hosts on your machine to point to different sites -- you can have site1.com.local pointing to /Design/site1, site2.com.local pointing to /Design/site2.
Then when you visit site1.com.local in your browser (or set that to the "Local URL" in Coda), the "/" will only take you to the site's root, in that case /Design/site1.
To do this, you'll need to do two things:
1 - set up the Virtual Hosts in your httpd.conf file.
This file is located in /Applications/MAMP/conf/apache
At the end of this file, add something like this:
#
# Use name-based virtual hosting.
#
NameVirtualHost *
#add one of the following blocks for each site you'd like to run
<VirtualHost *>
ServerName site1.com.local
DocumentRoot /Users/<yourusername>/Documents/Design/site1/
</VirtualHost>
2. Add the URLs to your hosts file
This file is located at /private/etc
You'll need to edit this from inside of terminal:
sudo nano /private/etc/hosts
enter your password, then you'll be entered into the nano text editor.
Add the following line for each site to add:
127.0.0.1 site1.com.local
Save the file with ctrl-o (then return)
Exit nano with ctrl-x
Restart MAMP, and you should be all set to go.