force an ssl redirect using iis 6.0 for one specific directory within site

force an ssl redirect using iis 6.0 for one specific directory within site

Post by Dee Holzma » Thu, 31 Jul 2008 08:35:42


I have another unusual situation - a website with one folder that we'd like
to force an ssl connection on. This folder does not contain a default page
(at website owners request - they just want a simple directory listing). We
don't want to force an ssl connection for the whole site, just that folder.

Can I put a custom 401 error page in that specific directory (not a default
page - just a vbscript ASP page that contains the redirect code), then set
up IIS 6.0 to redirect to this custom error page in case someone types in
http://www.yqcomputer.com/ : ?

Thanks in advance for all your help,

Dee Holzman
 
 
 

force an ssl redirect using iis 6.0 for one specific directory within site

Post by David Wan » Fri, 01 Aug 2008 02:58:14


Redirection can be done on a per-URL level on IIS, so you can force a
redirect for a specific directory just like you can for a website or
even a specific page using the exact same tactic.


//David
http://www.yqcomputer.com/
http://www.yqcomputer.com/
//