IIS7 httpRedirect

IIS7 httpRedirect

am 24.08.2007 15:05:57 von gauty

Hi,

I'm trying to use Vista Ultimate 32-bit as a development platform and
replicate an ASP.NET project from Win XP Pro with IIS5 on to the IIS 7
platform. One of the things the current application does is a number
of client-side HTTP Redirects, which are simple to setup in IIS5 in XP
via the Directory tab on the Properties page of a web directory.

However, on Vista/IIS7 (after you've ensured that the httpRedirection
module is installed) you need to configure this via the
applicationHost.config XML file, in the section . (Why
this has not been provided as a management tool via the UI is
completely beyond me - I hope this is rectified ASAP.)

As there is little or no documentation on this, I'm finding it hard to
get a simple redirect to work. All I want to do is redirect all
requests for http://localhost/sitename/sslin/ to http://localhost/secure/.
For example, http://localhost/sitename/page.aspx?id=123 should be
redirected to http://localhost/secure/page.aspx?id=123

>From my understanding, this configuration (below) should do it, but it
doesn't work, and everything else I've tried also fails.

Where am I going wrong?

exactDestination="true"
httpResponseStatus="Found"
childOnly="true">

destination="http://localhost/sitename/secure$S$Q" />




I know there's a programmatic solution via a dedicated HTTP Module,
but I don't want to pursue that just now - all I want is to reproduce
the IIS5/6 functionailty.

Any help would be greatly appreciated.

Graham