Click here to Skip to main content
15,886,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have an ASP application with URL: http://exampleAsp.com and an ASP.NET application with URL: http://exampleAspDotNet.com.

Suppose ASP application is in WEBSERVER1(ip:192.168.40.130) and ASP.NET application is in WEBSERVER2((ip:192.168.36.145) .

I need to interchange the URL for both the applications, i.e.
http://exampleAsp.com opens the ASP.NET application , and
http://exampleAspDotNet.com opens the ASP application.

I am using alias value for the ASP.NET application.
HostHeaderName = http://exampleAspDotNet.com[^]

In the ASP application, the URL is hardcoded since we check certain conditions on that URL.

Hence the Sites are not working when we interchange the IP address.

My Question is...
1. Do I need to change the Alias name of the ASP.NET application so that I can open the ASP.NET application by the URL http://exampleAsp.com[^]

2. Do I need to make code changes in the ASP application where the condition for the URL http://exampleAsp.com is checked ??



Thanks in Advance !!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900