Linking your own subdomain with Amazon S3
After I learned how to use PHP to move files to S3. I was looking for a way to do this in a transparant way, so you'll still be able to use your own domain name when storing your files on S3.
Twitter uses S3 for storing its user avatars, try loading the timeline and you'll see the amazonaws.com url coming up in your browser status bar. While this is just a small and visual annoyance, it becomes an issue when people start linking directly to your files stored on Amazon S3. The direct link to a file on S3 will look something like http://aws.amazonaws.com/your_bucket_name/your_file_name . This is not exactly pretty and you're missing out on a lot of Google juice. In this post I'll show you how to avoid this in a few simple steps. Only thing you need is an S3 account and access to your DNS config file.

