I would like to know what is the best way to redirect everything from marketing-address.com to real-address.com.
best means
- as less effort as possible,
- as cheap as possible,
- as secure as possible.
In detail:
- Less effort: If possible without the need of creating a website oder some code like javascript
- Secure: https://marketing-address.com should be accpeted by the browsers - no warning.
- Cheap: if possible without buying a certificate (I don't think that this is possible) and without having a second webserver running
So in theory, the communication would be like this:
- Making the address targeting the same IP address
- Making the existing IIS listen to that address to
- Let IIS tell the caller "yes, you're totally right here, but I neither I have a website nor do I have a certificate, but you don't need anything of that since you get redirected anyway..."
Is there a chance to accomplish that? If no, I would need to buy a certificate. What would be the solution then?
There are 2 restrictions:
- We are using an Azure App Service for hosting an asp.net core site, which seems to be very restricted in configuration possibilities
- The browser should definetly show the real-address.com in the URL, not the marketing-address.com.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…