I have several applications installed on IIS:
/abc
/bcd
Now I want to redirect users coming to /
to the /abc
website. Since the root is not part of any application, I cannot use IIS Rewrite Module which uses redirects defined in web.config
.
So I installed HTTP Redirection
in IIS and enabled the following:
This works, if the user enters exactly http://example.com
or http://example.com/
, the server redirects to http://example.com/abc/
.
However, if the user enters http://example.com/abc
, the server treats the request as in the root directory, so it applies a redirection too, leading to http://example.com/abc/abc
.
I also tried checking the first checkbox (Redirect all request to exact destination), but this leads to a redirection loop from http://example.com/abc
to http://example.com/abc
.
I want those users entering example.com/abc
to stay there, and redirect users entering example.com
to the /abc
application. How can I do that?
^$
, could you please explain? – Rosin