Amazon s3 is a cloud storage service. i personally use it to store files especially images used on my blog post.
- Must Read: How To Set Up Amazon S3 The Easy Way
By default, the URL to amazon bucket is usually https://REGION.amazonaws.com/BUCKETNAME/
here is a sample url to an image in my tech4sky bucket.
Also you can access your bucket via http://BUCKETNAME.s3.amazonaws.com as in
How to re-write Amazon s3 url to branded domain
Now am going to show us how to rewrite the default Amazon s3 file url to your branded custom subdomain name.
For example, the image above can also be accessed via http://media.w3guy.com/whatthefont.png
- Create a cname record pointing to s3.amazonaws.com
- Create a bucket with same name as the cname. for example, if the cname record is media.yourdomain.com, create a bucket with name media.yourdomain.com
- Now you can access files in your bucket using your branded sub domain.