Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Instead of using www.mydomain.com as the primary and 301 redirecting requests from mydomain.com, is it possible to do this the other way around? I want mydomain.com as the primary and 301 redirect www.mydomain.com.


Yeah, that's what this example does:

http://docs.amazonwebservices.com/AmazonS3/latest/dev/websit...

"In this step, you will configure both buckets for website hosting. First, you will configure example.com as a website and then you'll configure www.example.com to redirect all requests to the example.com bucket."


I just set it up with non-www as the primary, works like a charm.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: