主机类型定义网站的行为。Plesk 支持三种主机类型: 网站主机重定向 ,和 无虚拟主机

网站主机

网站 主机是指网站实际托管于此服务器上。

您可为网站主机类型进行以下指定:

  • Preferred domain. Typically, any website is available on two URLs: with the www prefix (like in www.example.com) and without it (like in example.com). We recommend that you always redirect visitors to one of these URLs (typically to the non-www version). For example, after you set the Preferred domain to the non-www version (example.com), site visitors will be redirected to this URL even if they specify www.example.com in their browsers. Plesk uses the search engine friendly HTTP 301 code for such a redirection. This allows preserving search engine rankings of your site (preferred domain). If you turn off the redirection by choosing None, search engines will treat both URL versions (www and non-www) as URLs of different sites. As a result, rankings will be split between these URLs.
  • 文档根 。保存网站所有文件与子目录的目录位置。您可以使用默认的 httpdocs 目录或指定其它目录。

转发

You can point one or more registered domain names to the same physical website, by using domain name forwarding. This allows automatic redirection of visitors from the URL they specify in a browser to a site with a different URL. For example, visitors of the site www.example.com can be redirected to www.somedomain.tld. There are two types of forwarding in Plesk: the standard and frame forwarding.

标准转发

使用 标准转发 ,被重定向至另一个 URL 的用户可以在浏览器地址栏中看到目标 URL。

Depending on how long you intend to use the redirection, you can select the type of redirection – Moved permanently (code 301) or Moved temporarily (code 302). These are HTTP response codes which Plesk sends to browsers to perform the redirection. From the visitors’ point of view, the response code does not matter: in both cases, visitors will be redirected to the destination URL. For search engines, the code defines how they should treat the redirected site and affects search engine rankings.

  • 永久转移(代码 301)

    如果您想在永久转移到另一个地址后保持网站的搜索引擎排名,可使用此重定向类型,例如,如果 example1.com 被永久转移到域名 example2.com,排名将不会分散在 example1.com 和 example2.com 之间 - 搜索引擎爬虫将把他们视为单个网站。
    如果您想在永久转移到另一个地址后保持网站的搜索引擎排名,可使用此重定向类型,例如,如果 example1.com 被永久转移到域名 example2.com ,排名将不会分散在 example1.comexample2.com 之间 - 搜索引擎爬虫将把他们视为单个网站。
  • 暂时转移(代码 302)

    暂时使用目标域名时,可使用此重定向类型,例如,当您正在通过真正的访客测试网站新版本,同时保持旧版本完整。如果您为新创建的目标域名设置此重定向,该域名将不会被搜索引擎收录。

帧转发

With Frame forwarding, when visitors are redirected to another site, the address bar of their browsers continues to show the source URL. Thus, visitors remain unaware of the redirection. This is called frame forwarding as the index page of the source site contains a frame with the destination site.

无 Web 主机的域名

You can switch off the web service and use only the email services for that domain (Websites & Domains > domain name > Hosting Settings > the Change link near Hosting Type > the No web hosting option).