.Net Rewrite Maps Everything in Directory/Folder

In your web.config file, add the rewrite tag:

<system.webServer>
<rewrite>
<rules>
<rule name="SpecificRedirect" stopProcessing="true">
<match url="^yourDirectory*" />
<action type="Redirect" url="/newPage.aspx" redirectType="Permanent" />
</rule>
</rules>
</rewrite>

Note the redirectType is permanent. This makes it a 301 redirect.

About admin