Hi all,
I apologize if this has been asked a million times already. I havent been able to find a clear answer searching the forms. I am trying to setup my web.config to do a redirect for any html/asp file called within a specific directory to https
I know you can do this to force everything to https but thats not what I want to do.
<rewrite><rules><clear /><rule name="Redirect to https" stopProcessing="true"><match url="(.*)" /><conditions><add input="{HTTPS}" pattern="off" ignoreCase="true" /></conditions><action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" /></rule></rules></rewrite>
I want any file in directory "sc" to be redirected to https
Basically any file called at this root URL to be redirected to https:
http://www.mydomain.com/sc
so any of these urls
http://www.mydomain.com/sc/about.asp
http://www.mydomain.com/sc/contact.asp
would redirect to
https://www.mydomain.com/sc/about.asp
https://www.mydomain.com/sc/contact.asp
When a user logs into our site the url is like this
http://www.mydomain.com/mem/ls.wsc/sc/dashboard.asp
http://www.mydomain.com/mem/ls.wsc/sc/settings.asp etc
I dont want IIS to force an SSL redirect with these urls or anything at this root url after they login.
http://www.mydomain.com/mem/ls.wsc/sc/
Any help with web.config examples would be greatly appreciated.