I have a situtation where I am replacing my existing ASP.net website with a website hosted in an S3 bucket.
I have some exiting API calls to be existing website such as
https://www.mywebsite.com/api/someapipost
When I change the website to S3, is there anyway I can redirect anyone making a request the old website address? I have an app which if anyone hasn't updated recently will still be calling the old API requests.
E.g. when they hit this url
https://www.mywebsite.com/api/someapipost
I can redirect it to another address such as
https://api.mywebsite.com/api/someapipost
Any advice anyone can give on this I would greatly appreciate
question from:
https://stackoverflow.com/questions/65876186/can-you-redirect-a-post-request-to-s3-static-website-to-another-url 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…