Default web site is set to redirect to a startup-application:

http://foo.bar.com becomes https://foo.bar.com/startapplication and it works fine.

However, i have another application on the web server and it should redirect to itself if called with http.

So for example this:

http://foo.bar.com/application

Should become this:

https://foo.bar.com/application

BUT

it becomes:

https://foo.bar.com/startapplication/application

It seems that the web server ( iis 7.5 ) inherits the http redirect in some kind of way from the default web site.

Is this standard behaviour or am i missing something here?

有帮助吗?

解决方案

Install the URL Rewrite extension (if you haven't already) and configure an inbound rule as seen in the screenshots. Don't forget to disable your redirects.

Rewrite rule http to https - part 1 Rewrite rule http to https - part 2

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top