What is trying to be achieved:
- Redirect any http traffic to https traffic
- If just the domain or root is entered, a redirection occurs to a particular path/url
Example:
- User entered -> redirected to
- http://sub.domain.com/ -> https://sub.domain.com/mdesign/0/procs/index.html
- https://sub.domain.com/ -> https://sub.domain.com/mdesign/0/procs/index.html
- http://sub.domain.com/mdesign/0/procs/index.html -> https://sub.domain.com/mdesign/0/procs/index.html
What works:
- User entered -> redirected to
- http://sub.domain.com/ -> https://sub.domain.com/mdesign/0/procs/index.html
- http://sub.domain.com/mdesign/0/procs/index.html -> https://sub.domain.com/mdesign/0/procs/index.html
- And any https valid path entered directly also correctly works
What doesn't work:
- https://sub.domain.com/ -> https://sub.domain.com/mdesign/0/procs/index.html
No redirect occurs (no 302 is returned), instead a 404 with, "The resource '/' was not found (insufficent components in path).", which is the webservice application (mdesign) stating nothing at '/' because what we want is in /mdesign/0/procs/
Config
- IIS 6.0 Used for the redirection on top of
- mDesign which is an application serving the https traffic but uses basic windows httpapi so web configuration options within the application are limited (ie no redirection from http->https)
Home Directory Tab for sub.domain.com properties iis 6.0:
- Content should come from:A redirection to a URL
- Redirect to:https://sub.domain.com/mdesign/0/procs/index.html
- The client will be sent to:The exact URL entered above