Create an Amazon S3 replacement for .htaccess files


Amazon S3 does not support the use of .htaccess files for redirection in the case of unfound resource requests. We use them to redirect to an appropriate version specific 404 page for each release, such as

However, only one such page is permitted for the entire S3 bucket. So, we need a page that, on load, figures out which directory the request came from, and then redirects to the appropriate page.

If the directory requested falls under this:<product>/<version>/...

then redirect to<product>/<version>/en/404.html

If the directory requested falls under this:<product>/...

then redirect to<product>/404.html

If the directory requested is above that, and under this,

then redirect to

Release Notes



John Jackson
November 10, 2016, 3:29 AM
Your pinned fields
Click on the next to a field label to start pinning.


John Jackson


John Jackson