如何使用Route 53将裸机(顶点)域重定向到www? [英] How do I redirect a naked (apex) domain to www using Route 53?

查看:857
本文介绍了如何使用Route 53将裸机(顶点)域重定向到www?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用Route 53(如果有必要)从example.com到www.example.com进行301重定向。有几个类似问题的解决方案,但是他们也没有解决如何


I need to do a 301 redirect from example.com to www.example.com using Route 53 (and S3 if necessary). There are a few solutions for similar problems but they either do not address how to redirect from the apex or they simply don't work.

When I follow the steps here, Route 53 tells me I can't add a CNAME to the apex domain. Therefore, I'm stuck in the mud.

This seems dumb simple but Amazon is making it hard. Any help would be appreciated.

解决方案

Try making an alias record instead of CNAME.

Per this answer: RRSet of type CNAME with DNS name foo.com. is not permitted at apex in zone bar.com

这篇关于如何使用Route 53将裸机(顶点)域重定向到www?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆