CssRewriteUrlTransform with or without virtual directory

I am not sure to fully understand your problem, but seeing http://localhost here seems wrong. You should never use an absolute URL for your bundles. For me CssRewriteUrlTransform works perfectly, here is how I use it: bundles.Add(new StyleBundle(“~/bundles/css”).Include( “~/Content/css/*.css”, new CssRewriteUrlTransform())); “Bundles” is virtual. Does this helps? Update I was confused with the “VirtualDir” thing, … Read more