【发布时间】:2018-03-27 16:05:59
【问题描述】:
我正在考虑将我的网站从 .co.nz 迁移到 .com,但需要设置 301 重定向,以便在没有任何 .co.nz 版本中的任何 404 页面的情况下,所有单个页面仍然可以正确路由
全部 https://
我想让“https://www.example.co.nz/”转到“https://www.example.com”
这也将重定向
https://www.example.co.nz/contact 转至https://www.example.com/contact https://www.example.co.nz/men去https://www.example.com/men
非常感谢
【问题讨论】:
-
为确保您知道自己在做什么,您可能需要阅读 apache 的文档以通过 mod_rewrite 进行重定向:httpd.apache.org/docs/2.4/rewrite/remapping.html
-
感谢您的评论。我不确定如何将旧域 (.co.nz) 迁移到新域 (.com) 版本。
-
https版本呢?
标签: .htaccess redirect web migration url-redirection