且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何将 domain.com 转发到 godaddy 上的 www.domain.com 以用于 s3 托管站点?

更新时间:2023-02-26 10:02:37

我认为用户 Go Daddy 的回答是正确的,但我会写出更简洁的说明,我遵循这些说明以使转发对我有用.我不知道为什么其他人建议使用 wwwizer,因为 GoDaddy 也使用 301 重定向(但也许它不习惯?).顺便说一下,这个答案并不是针对 Amazon 的 S3——它只需要您正确设置www"CNAME 记录.

I think user Go Daddy's answer was correct, but I'll write up more succinct instructions that I followed to get the forwarding to work for me. I don't know why others are suggesting wwwizer, because GoDaddy uses a 301-redirect too (but maybe it didn't used to?). By the way, this answer isn't specific to Amazon's S3 -- it simply requires you have the "www" CNAME record set correctly.

  1. 登录 GoDaddy.com.
  2. 点击我的帐户.
  3. 点击产品,然后点击您的域旁边的启动按钮.
  4. 域信息部分,您应该会看到转发:关闭".点击旁边的管理链接.
  5. 应该会出现一个转发和屏蔽对话框.在将 DOMAIN.COM 转发到下,输入www.domain.com".
  6. 点击确定按钮.
  1. Login to GoDaddy.com.
  2. Click on My Account.
  3. Click on the Domains product, and click the Launch button next to your domain.
  4. In the Domain Information section you should see "Forwarding: Off". Click the Manage link next to it.
  5. A Forwarding and Masking dialog box should come up. Under Forward DOMAIN.COM to enter "www.domain.com".
  6. Click the OK button.

可能在半小时内转发就开始了.

The forwarding kicked in for me within maybe half an hour.

请注意,在对话框中,您可以将其更改为转发http://"或https://".我只需要它作为http://",所以我不确定 GoDaddy 是否会同时转发 SLL 和非 SSL.

To note, in the dialog box you can change it to forward either "http://" or "https://". I only needed it for "http://", so I'm not sure if GoDaddy will forward both SLL and non-SSL at the same time.

另外,如果您很好奇,如果您点击转发和屏蔽对话框中的高级选项链接,它应该默认为仅转发"并将重定向类型设置为永久转发您的域(这就是 301 重定向的原因).

Also, if you're curious, if you click on the Advanced Options link in the Forwarding and Masking dialog box, it should be defaulted to "Forward Only" and have the redirect type set to permanently forward your domain (which is what gives the 301-redirect).