2012-04-22 105 views

回答

10

找到它,你需要首先去你的主頁中的Plesk Panael,選擇虛擬目錄,然後選擇你的域名,然後選擇目錄屬性

0

這種做法是通過.htaccess在Linux文件中對URL進行重寫改變IIS的windows。

.htaccess 
RewriteEngine On 
RewriteCond %{HTTP_HOST} ^example.com$ 
RewriteRule ^$ http://example.com/index.php [L,R=301] 

我希望這有助於。

1

或者使用的Web.Config,但是推薦的方法是從虛擬目錄

<configuration> 
     <system.webServer> 
      <defaultDocument enabled="true"> 
      <files> 
       <add value="home.html" /> 
      </files> 
      </defaultDocument> 
     </system.webServer> 
    </configuration> 

阿帕奇通常設置爲的index.php或index.html使用

您可以在Linux上使用的.htaccess服務器和設置默認頁面的Plesk網站

DirectoryIndex index.php index.html site-down.php 
0

如果網站是開放的index.html(由網絡託管公司提供顯示器的默認頁),以及你想要的defau lt頁面由index.php控制,刪除(或重命名index.html),它會自動拾取index.php作爲啓動文件。至少它是如何與Peer 1協同工作的。