Mike Slinn

Connoisseur of Technology

AWS S3 Web Sites and Naked HTTP Redirects

2012-11-14 / All Blog posts

Sites hosted directly off AWS S3 only respond to the www subdomain. In other words, if you tried to navigate to http://mysite.com for a site that was hosted on AWS S3, a 404 status would result, however http://www.mysite.com would work. Some registrars, like Namecheap and GoDaddy have URL Redirect, while others, like GKG.net, do not./p>

Here is how to set up Namecheap to redirect requests like http://mysite.com/blah to http://www.mysite.com/blah so AWS S3 will respond. I also show how to set up the DNS for email with Rackspace.

  1. AWS buckets can only be used for serving web sites if they start with www, for example: www.artforhealingenvironments.
  2. Go to the Namecheap FreeDNS service. This will set up your domain for a smooth transfer to Namecheap, for uninterrupted web presence during and after the transfer.
  3. Enter your domain name, for example artforhealingenvironments.com, and click on Get DNS
  4. On the next page, click on Add DNS Service For the Selected Domains
  5. Fill in the the Namecheap Hosted Domains page. It will look something like this when you are done, for the artforhealingenvironments.com domain.
    1. In the first IP ADDRESS/URL, put the fully resolved HTTP URL, with a trailing slash; set the record type to URL Redirect: http://www.artforhealingenvironments.com/
    2. In the second IP ADDRESS/URL, put the AWS bucket name, followed by the S3 site's domain; Namecheap will automatically add a period after, so you do not have to. Set the record type to CNAME:www.artforhealingenvironments.com.s3-website-us-east-1.amazonaws.com
    3. Namecheap's minimum TTL is 60 minutes.
    4. Namecheap's web site automatically adds a period after each domain name.
  1. The MX records for email are shown at the bottom; they won't appear until you press the Save Changes button once (not shown). The MAILSERVER HOST NAME values are mx1.emailsrvr.com and mx2.emailsrvr.com.
  2. After the transfer completes, the FreeDNS entry will automatically be removed, and you will manage the domain on the Namecheap Manage Domains page

Contact Mike Slinn

Unless you are a recruiter, in which case you should not try to make contact!

  • Email
  • Direct: 514-418-0156
  • Mobile: 650-678-2285


The content on this web site is provided for general information purposes only and does not constitute legal or other professional advice or an opinion of any kind. Users of this web site are advised to seek specific legal advice by contacting their own legal counsel regarding any specific legal issues. Michael Slinn does not warrant or guarantee the quality, accuracy or completeness of any information on this web site. The articles published on this web site are current as of their original date of publication, but should not be relied upon as accurate, timely or fit for any particular purpose.

Accessing or using this web site does not create a client relationship. Although your use of the web site may facilitate access to or communications with Michael Slinn via e-mail or otherwise via the web site, receipt of any such communications or transmissions does not create a client relationship. Michael Slinn does not guarantee the security or confidentiality of any communications made by e-mail or otherwise through this web site.

This web site may contain links to third party web sites. Monitoring the vast information disseminated and accessible through those links is beyond Michael Slinn's resources and he does not attempt to do so. Links are provided for convenience only and Michael Slinn does not endorse the information contained in linked web sites nor guarantee its accuracy, timeliness or fitness for a particular purpose.

comments powered by Disqus

© 1976-2020, Michael Slinn. All rights reserved.