Create 301 Redirection in Amazon Route 53 for Wildcard Subdomains

Posted by Eric Yin on Server Fault See other posts from Server Fault or by Eric Yin
Published on 2013-04-20T23:46:30Z Indexed on 2013/11/09 21:57 UTC
Read the original article Hit count: 327

Filed under:
|
|
|

My domain name hosted on Route 53 DNS.

Amazon has a guide to do 301 redirection for www. To naked domain by point www. version to a S3 static website with 301 setted up.

My question is, how can I have *.domain.com all have 301 redirec to naked domain name.

I guess either:

Some way to get all wildcard subdomains end up into one S3 bucket, how?

Or:

Use CloudFront on the www. version S3 site and put wildcard subdomains on the CloudFront, but how?

Or:

There's some hidden settings just lies on Router 53, then where?

Or: use EC2, better not suggest me this, too costing for this task.

Please advice.

© Server Fault or respective owner

Related posts about dns

Related posts about amazon-s3