Q:

Redirect all the requests to a another directory

I'm using bellow web.config to redirect requests to a another folder. But the problem is requests coming to files want get redirected.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>  
<system.webServer>
    <httpRedirect enabled="true" destination="http://www.mysite.com/ppc/" />
</system.webServer>
</configuration>

example http://www.mysite.com/original/ to http://www.mysite.com/ppc/ works
but http://www.mysite.com/original/a.php to  http://www.mysite.com/ppc/ does not works. 
It ended up going to http://www.mysite.com/ppc/a.php
Please help.

A:

I found the solution. We have to use the exact destination option also.
<httpRedirect enabled="false" destination="http://www.mysite.com/ppc/" exactDestination="true" childOnly="true" />

