【问题标题】:I cant find out how to do subdomains我不知道如何做子域
【发布时间】:2014-11-25 05:54:04
【问题描述】:

我如何知道是什么构成了我的子域?我发誓我浏览了服务器中的每个 .htaccess 文件。

我刚刚从以前的 IT 人员那里继承了服务器,而且它一团糟。据我所知,创建子域的可能是直接的 DNS。

我有:

www.theprinterdepo.com

preprod.theprinterdepo.com
demo1.theprinterdepo.com
demo2.theprinterdepo.com

但我不知道如何进行这项工作。我试过浏览所有的 htaccess 文件,但找不到任何提到那里有什么和什么重定向的东西。

似乎有一个 301 永久重定向到

dev.theprinterdepot.net 

www.theprinterdepo.com

【问题讨论】:

  • 我在 cpanel 中找到了重定向。但没有一个是活跃的。然而,当我访问:www.theprinterdepot.net 或 preprod.theprinterdepot.net 时,它会自动重定向到打印机 depo.com
  • 发现这是一笔 magento 交易。您不能只是将 magento 的实例复制到另一个文件夹并将其称为实时服务器。你必须编辑设置和所有

标签: .htaccess magento dns subdomain digital-ocean


【解决方案1】:

域/子域的两个组件。

一个是创建域/子域(IP 地址解析)的 DNS 条目,另一个是允许服务器响应的 Web 服务器虚拟主机配置。

因此,取决于托管方式,上述所有内容的 WHM/Cpanel,或您的注册商的 DNS 和实际挖掘虚拟主机条目的服务器配置。

.htaccess 是在这一事实之后的事情,因为 DNS 必须解析服务器名称,然后指向理解请求的虚拟主机。

【讨论】:

    猜你喜欢
    • 2022-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-25
    • 1970-01-01
    • 1970-01-01
    • 2014-02-16
    • 1970-01-01
    相关资源
    最近更新 更多