Generate redirect rules for Amazon S3

This is opensource on github by Rainforest QA from the original gist by chitsaou.

Example:

/home                        /
/products/iphone/specs.html  /iphone/specs.html
/products/iphone/            /iphone/
/products/ipad/accessories/  /ipad/accessories.html
/products/ipad/              /ipad/
/products                    /

Paste your stuff in here: