Set the page as the default page in Plesk

How to set a page as the default page in Plesk. for example, when someone asks for www.mysite.com, he will automatically open www.mysite.com/Index.html

thank

+3
source share
4 answers

Once found, you need to first go to your home page in Plesk Panael, select virtual directories, then select your domain, and then select Directory Propertories

+10
source

Or use Web.Config, but the recommended way is to use from virtual directories

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

Apache is usually installed in index.php or index.html

You can use .htaccess on Linux servers and set the default page on the Plesk website.

DirectoryIndex index.php index.html site-down.php 
+1
source

.htaccess Linux, URL- IIS Windows.

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

, .

0

If the website opens index.html (displays the default page provided by the web hosting company) and you want the default page to be controlled by index.php, delete (or rename index.html), and index.php will automatically fire as a startup file. At least that's how it works with Peer 1.

0
source

All Articles