2012-04-22 102 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协同工作的。