How to redirect a SharePoint site from "" to "" when accessed from outside domain network.

Shuvajit Roy 166 Reputation points

I have a SharePoint site in my on premise SharePoint server 2019 with URL: I want to redirect the URL to https:// to a site collection in SharePoint whenever users hit However, this facility is to be performed from the internet only through reverse proxy i.e. outside domain network.

On the other hand, if users browser only and "" from from inside the domain network it would be serving respective contents from the respective URL's and no redirection is required while inside domain network.

How to achieve this configuration from IIS url rewrite from windows server. I saw lot of blogs but cannot accomplish the task. I need the step by step procedure to perform the task.

Can somebody help?

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,243 questions
Internet Information Services
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,793 questions
{count} votes