MVC bundles and IIS virtual directories (URL rewrite)
问题 I'm hosting multiple applications on IIS server virtual directories and I'm using URL Rewrite to facilitate them. All images and other assets that are manually written like this "~/path/to/my/content" has a correct output "/path/to/my/content" , but bundle paths like "~/client/js" gives an output "/myapplication/client/js" which should be "/client/js" . How can I fix that? How I initiate Script bundle: var scriptBundle = new ScriptBundle("~/client/js"); Rewrite configuration: <rule name=