title: IIS redirect/rewrite .asmx service
body: <p>I have searched around for the answer to this but cant find anything that fits my exact scenario.</p>
  
  <p>Currently have the below set up :</p>
  
  <p><strong>RootApplication(sitea.bla) .NET 3.5</strong></p>
  
  <p><strong>- ChildApplication (sitea.bla/service1) .NET 3.5</strong></p>
  
  <p>The root application is being rewritten in <strong>.NET 4.5</strong> but the <strong>service1</strong> application will not be being updated in this current phase and will be removed as an child application.</p>
  
  <p>I have moved the <strong>service1</strong> application to a sub domain (<strong>service1.sitea.bla</strong>)so it can run in an legacy application pool. </p>
  
  <p>This works perfectly though I have multiple other applications/services/clients that reference the original endpoint. I have set up a IIS redirect which works perfectly in the browser</p>
  
  <p><strong>sitea.bla/service1/exampleservice.asmx</strong> gets redirected to <strong>service1.sitea.bla/exampleservice.asmx</strong></p>
  
  <p>Though when making a call through a client application it fails unless I manually change the endpoint to the new sub domain . I have also tried achieving through a reverse proxy.</p>
  
  <p>What is the best method to achieve this without manually changing all the endpoints to the new sub domain?</p>