简体   繁体   English

301重定向,无需托管

[英]301 Redirect without hosting

I have a client who is merging two sites into one. 我有一个客户正在将两个站点合并为一个。 For the time being we are just installing a WP plugin to the site to manage the handful of 301 redirects they'd like handled, rather than writing to .htaccess manually. 目前,我们只是在站点上安装WP插件来管理他们希望处理的少数301重定向,而不是手动写入.htaccess。

But in a month or two they'd like to remove the site completely. 但是在一两个月后,他们想彻底删除该网站。 Is there a way we can redirect traffic to the new combined site once they get rid of their hosting and we no longer have access to their .htaccess? 一旦他们摆脱了托管,我们再也无法访问他们的.htaccess,是否可以将流量重定向到新的组合站点?

I have seen some brief mentions of setting the DNS to something but I don't totally understand and I'm not sure if this is the right thing to do. 我已经简要提到过将DNS设置为某些内容,但是我并不完全理解,因此我不确定这是否是正确的选择。 I have not asked the client if they are holding onto the domain name. 我没有问客户他们是否持有该域名。 In order to point the DNS to the new site, we'd need them to still own the old domain, correct? 为了将DNS指向新站点,我们需要他们仍然拥有旧域,对吗? What would I assign the values to be? 我将这些值指定为什么?

  1. You have to own the domain to do anything with it including updating DNS name. 您必须拥有该域才能进行任何操作,包括更新DNS名称。 It wouldn't be smart to let it go. 放手去不是明智的。
  2. If they don't have hosting on it anymore, then they will need to do domain forwarding with DNS. 如果他们不再托管,那么他们将需要使用DNS进行域转发 It can be done with 301 or 302 status codes. 可以使用301或302状态代码完成。 This link will show you how to do it on Godaddy. 该链接将向您展示如何在Godaddy上进行操作。 If you don't have Godaddy as your registrar, just look for the instructions for your domain registar. 如果您没有Godaddy作为注册商,则只需查找有关域名注册商的说明。

https://www.godaddy.com/help/manually-forwarding-or-masking-your-domain-name-422 https://www.godaddy.com/help/manually-forwarding-or-masking-your-domain-name-422

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM