1 Answer
- Newest
- Most votes
- Most comments
0
2 Options
- If you are using an ALB then create redirect rules that redirects anything to your website to the new website
- On your webserver, create a redirect which you will need to keep your EC2's up and running for some time.
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
Okay. Thanks. Can you also help how to achieve the below use case?
When user tries to access our admin application using url https://www.ourwebsite.com/adminapp then it should be served from our existing EC2 instance where we have hosted our adminapp in IIS.
Thanks in advance.
Thats fine, if using an ALB have a rule in position 1 that directs anything to /adminapp to the EC2 (Target Group) Rule 2 will redirect the domain to the external web provicer
Are you using an ALB?
No. We have Route53 to manage domain.
You have no alb and allow direct access to the ec2? Ok then you will need to setup redirect in iis This may help https://www.pluralsight.com/blog/tutorials/iis7-redirect-windows-server-2008
You may wish to consider moving to an alb for the extra functionality and the ability to add waf etc
Okay, Thanks for your guidance.