Whenever I develop on test vs live I only use "/css/location/cssfile.css" (this applies to any file) that way I don't have to modify anything.
Then when my HTML loads, it will call from the right location. The above translates into:
http://localhost/location/to/www/root/css/location/cssfile.css
or
http://test.com/css/location/cssfile.css
This will work for 50 sites:
/css/location/file.name
Would work for:
http://localhost/location/to/www/root
http://localhost/location/to/www/testsite1
http://localhost/location/to/www/testsite2
http://localhost/location/to/www/testsite3
etc
http://www.domain.com/approot/:)/e.g.http://www.domain.com/approot/somepage.aspx?