Some of my site's pages are retrieving the .css files from a different directory I've been working on theming a Pages page on my local machine. This has been going fine, but now I have pushed the changes to a remote server and see that the site is trying to retrieve the .css file from the wrong directory.

On my local machine, this is fine. On the remote machine, it seems drupal is trying to retrieve the .css file from sites all:

@import url("http:/mysite.com/sites/all/themes/custom/mytheme/css/main.css");


Where as my local version has:

@import url("http://localdev.mysite.com/sites/mysite.com/themes/custom/mytheme/css/main.css");


Would anyone know why this is and how I could correct it?
May I know where you have added CSS? on theme.info file or template.php

This issue occurring because of your theme has contained an absolute path, You need to replace absolute path the relative path.

First, you need to check that, On which file this CSS has called.

Remove from there and add CSS on theme.info file or template.php file.

On theme.info you need to add like stylesheets[all][] = custom/mytheme/css/main.css

On template.php you need to add css using drupal_add_css on template_preprocess_html(&amp;$variables).