{"id":1210,"date":"2020-06-04T23:31:13","date_gmt":"2020-06-04T15:31:13","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1210"},"modified":"2026-01-09T11:42:48","modified_gmt":"2026-01-09T03:42:48","slug":"set-default-page-on-linux-plesk-using-htaccess","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/set-default-page-on-linux-plesk-using-htaccess","title":{"rendered":"Set default page on Linux plesk using .htaccess: Simple Guide"},"content":{"rendered":"<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h4><img decoding=\"async\" src=\"https:\/\/encrypted-tbn0.gstatic.com\/images?q=tbn:ANd9GcSG2gHZBmwrWOMws4EZmU3gI4-SU8thzYyOLw&amp;s\" alt=\"Plesk-Software\" \/><\/h4>\n<h4>Set default page on Linux plesk using .htaccess<\/h4>\n<h4 class=\"mkb-anchor__title\"><strong>Applies to :<\/strong><\/h4>\n<p>&nbsp;<\/p>\n<\/div>\n<ul>\n<li><a href=\"https:\/\/www.servergigabit.com\/\">Linux Server<\/a><\/li>\n<li>Requirements<\/li>\n<\/ul>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h2 class=\"mkb-anchor__title\"><strong>Requirements<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<\/div>\n<p>To perform this task, you need to have :<\/p>\n<ul>\n<li>Knowledge in accessing the server via SSH or FTP.<\/li>\n<li>IP address or server hostname.<\/li>\n<li>Your server SSH\/FTP username and password.<\/li>\n<\/ul>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h2 class=\"mkb-anchor__title\"><strong>Instructions<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<\/div>\n<p>In the folder where you want a DirectoryIndex rule to take effect, you can simply create a file named \u201c.htaccess.\u201d You may not be able to create \u201c.htaccess\u201d in a shared hosting plan because you are not allowed to start uploading or creating a filename with.\u201d \u201c(dot). Our support can help you rename the file later, though.<\/p>\n<p>Copy the following line in .htaccess file :<\/p>\n<p>DirectoryIndex default.html index.html index.cgi index.php<\/p>\n<p>Please note that from left to right, the Apache server must check for list files. The <a href=\"https:\/\/httpd.apache.org\/\" rel=\"nofollow noopener\" target=\"_blank\">Apache server<\/a> will first check for \u201cdefault.html\u201d to load in the above example. If it is not possible to find \u201cdefault.html,\u201d it will look for \u201cindex.html\u201d first. If it is not possible to find \u201cindex.html,\u201d it will look for \u201cindex.cgi\u201d next and so on.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/static.hosting.com\/kb\/kb-plesk-filemanager-createfile-dialog.png\" alt=\"Set default page on Linux plesk using .htaccess\" width=\"511\" height=\"201\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Set default page on Linux plesk using .htaccess Applies to : &nbsp; Linux Server Requirements Requirements &nbsp; To perform this task, you need to have : Knowledge in accessing the server via SSH or FTP. IP address or server hostname. Your server SSH\/FTP username and password. Instructions &nbsp; In the folder where you want a DirectoryIndex rule to take effect,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[36],"kbtag":[1494,1158,1137],"class_list":["post-1210","kb","type-kb","status-publish","hentry","kbtopic-plesk","kbtag-htaccess","kbtag-linux","kbtag-plesk"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=1210"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1210\/revisions"}],"predecessor-version":[{"id":5550,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1210\/revisions\/5550"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1210"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1210"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}