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

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

问题描述

我需要使用 Route 53(如有必要,还有 S3)进行从 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天全站免登陆