gpt4 book ai didi

ssl - 终止托管和 SSL 并重定向域名

转载 作者:太空宇宙 更新时间:2023-11-03 15:09:59 26 4
gpt4 key购买 nike

我有以下场景:

域名为 example-old.com 的网站由托管服务提供商托管。域名为 example-new.com 的网站托管在另一个托管服务提供商处。

域名为 example-old.com 的网站所有者想要停止托管SSL(为了访问您的旧网站必须输入 https://example-old.com )。他想保留域名 example-old.com 并且当有人导航到 https://example-old.com 时或 http://example-old.com重定向到 https://example-new.com/service .

不用说,托管和 SSL 是为 example-new.com 购买和使用的!

我知道我们必须以某种方式使用 301 永久重定向从 example-old.com 到 example-new.com/service

问题:

  1. 是否可以在没有托管的情况下在域上使用重定向?我通常在我的主机的 .htaccess 文件中进行 301 重定向。
  2. 我们如何对域名注册商执行 301 重定向?
  3. 假设我们实现了 301 重定向,并且由于域 example-old.com 的 SSL 不再付费/有效当有人导航到 https://example 时将如何 react -old.com?它会失败吗?有解决办法吗?
  4. 要从 example-old.com 重定向 SSL 和非 SSL 流量,我需要 2 条不同的重定向规则吗?

提前致谢!

最佳答案

Is it possible to use redirection on a domain without been hosted? I usually do 301 redirects within the .htaccess file of my hosting.

没有。如果 URL 下没有可访问的服务器,则没有服务器可以发出重定向。

How do we perform a 301 redirect on the domain name registrar?

一些注册商提供 HTTP 重定向,因为他们为此类托管域托管自己的服务器。也许你也可以像 Cloudflare 和 add the necessary redirection rules there 这样的 CDN .

Provided that we achieved the 301 redirection and since the SSL for the domain example-old.com is no longer paid/valid how is going to react when someone navigates to https://example-old.com? Is it going to fail? Is there a solution to this?

要从 https://example-old.com 进行重定向,您需要在颁发证书的服务器上安装 example-old.com 的有效证书重定向。

To redirect both SSL and non-SSL traffic from example-old.com do I need 2 different redirection rules?

这取决于发出重定向的服务器的设置和配置界面。

关于ssl - 终止托管和 SSL 并重定向域名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57441112/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com