I have a storage for public images in the S3 bucket. Anyone can get the public link to an image from my website, and use it on their own websites. The thing is that the link looks like this:

```
https://my-bucket-name.production.s3.eu-central-1.amazonaws.com/images/samplename.png

```

It's bad because every time I change the name of the bucket, or AWS region, the link will no longer be valid. It's also exposing many things to the user and it just looks ugly.

The ideal situation would be to redirect into s3 public link after accessing this:

```
https://mywebsite.com/awsstatic/images/samplename.png

```

So the server checks if there is `awsstatic` in the URL, and redirects to the S3 resource to show the image.

Now I could see writing a REST endpoint for that, with the file download, but then each time someone will try to access the image, my server will need to buffer the whole image. It will also get unnecessary additional traffic.

What's the proper process for doing this?