Remove a directory with ISAPI RewriteRule
<p>I'm trying to rewrite a web address to remove a directory, if it exists. In other words, if someone navigates to <code>www.domain.com/a/bad/b/c/page.pdf</code>, the RewriteRule should remove <code>/bad/</code> and send them to <code>www.domain.com/a/b/c/page.pdf</code>.</p>

<p>The <code>/bad/</code> directory will always be in the 2nd position in the URL, as in the example. The paths will always be to PDFs, if that makes a difference.</p>

<p>I've tried things, but no luck. I feel like this should be fairly simple. Any suggestions? </p>