主機類型
主機類型定義網站的行為。Plesk 支援三種主機類型: 網站主機 , 重定向 ,和 無虛擬主機 。
網站主機
網站 主機是指網站實際託管於此伺服器上。
您可為網站主機類型進行以下指定:
-
Preferred domain. Typically, any website is available on two
URLs: with the www prefix (like in
www.example.com)
and without it (like inexample.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 specifywww.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.com
和example2.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.