You should use relative paths relative to the actual location of the map / CSS file (eg, in a compiled subfolder) rather than absolute paths.
Otherwise, it won't work if the project is hosted in a subdirectory.  (project root != domain root)