Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
290 views
in Technique[技术] by (71.8m points)

asp.net - Can you redirect a POST request to S3 static website to another url

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...