I have an Azure VM that is hosting a web application.
The application will be accessible via the VM's IP address:
I want to be able to use query strings to redirect to completely different sites that are within the local IIS. For example:
would redirect to
The way I have structured IIS can be seen below:
Each site has an entry in the systems host file.
127.0.0.1 wwww.site1.com 127.0.0.1 wwww.site2.com 127.0.0.1 wwww.site3.com
There is likely a better way to achieve what I am going for here so any pointers would be greatly appreciated.