Our website (hosted on a non-Amazon standard linux box) has a folder called "software" to handle our downloads. in there is an .htaccess file with entries like:
Redirect /software/ourproduct.zip https://somebucket.ourdomain.com/ourproduct-123-4567.zip
With 123 being the version and 4567 being the build number.
When we update the software, we change the .htaccess accordingly. However, some people bookmark the link and we would like to somehow redirect the link:
somebucket.ourdomain.com/ourproduct-123-4567.zip
to
somebucket.ourdomain.com/ourproduct-124-7890.zip
Since this URL never goes through our main web server, but rather only via AWS S3/CloudFront, how can we put a 301 on it so people don't get a 404? I don't want them to get an old version of our software either.
I want this to be easy to update when we release new versions - just like mass editing an .htaccess file is easy.