Does <httpRedirect> in web.config work in a mono setup? Or is it IIS7 specific?

Posted by Crystal on Stack Overflow See other posts from Stack Overflow or by Crystal
Published on 2010-05-11T02:18:53Z Indexed on 2010/05/11 2:24 UTC
Read the original article Hit count: 299

We had some content restructure recently and I'd like to put in some redirect rules into web.config so bookmarks to the old pages can get routed to their new locations/pages.

I tried using this approach:

<location path="~/product/productA.aspx">
    <system.webServer>
        <httpRedirect enabled="true" destination="~/product/category/productA.aspx" exactDestination="false" childOnly="true" httpResponseStatus="Permanent" />
    </system.webServer>
</location>

But all I'm getting when I go to "http://www.oursite.com/product/productA.aspx" is our http 404 page.

Am I doing something wrong, or is the httpRedirect tag in web.config not supported in mono? worked, but not ideal for what we want to achieve.

Thank you :)

© Stack Overflow or respective owner

Related posts about mono

Related posts about ASP.NET