I have an IIS Server on Windows Server 2016 where I host one website.
The site is using bindings so that both of these domains, astro.resources.teams.org and astronomyteams.org, goto to the same website on both http and https.
But that means the user will see either astro.resources.teams.org or astronomyteams.org in the browser depending on their bookmark or what domain they type into the browser.
So now I want both domains, to show as https://astronomyteams.org/
I installed the URL Rewrite module in IIS and added this rule:
<rule name="CanonicalHostNameRule" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{HTTP_HOST}" pattern="^astro.resources.teams.org$" />
</conditions>
<action type="Redirect" url="https://astronomyteams.org/{R:1}" />
</rule>
But now, a certain large percentage of users getting a not found message when using their old https://astro.resources.teams.org/ bookmarks.
If they type in the astronomyteams.org it works, but I am trying to make it as painless as possible for the end user and I am hoping IIS can take care of this for me.
Is there anything else I need to do to make this work?