2

I'm setting up a custom 403.4 handler so that non-SSL requests to my site are redirected to a different URL - and what I'd like to do is to include the script path and query string in the redirect, so that a user who requests http://www.site.com/foo?bar=1 will be redirected to https://www.site.com/foo?bar=1

I know something similar is possible when configuring a top-level site redirect, using the $S, $Q, %v tokens referred to in this IIS reference page - but this syntax doesn't seem to work when configuring a custom error redirect.

Dylan Beattie
  • 576
  • 2
  • 9
  • 23
  • 1
    Easiest fix would be to set up a second site, assign the non-https binding and have that site redirect all requests to the https site – Mathias R. Jessen Jun 23 '12 at 21:38

0 Answers0