{"id":3457,"date":"2019-10-25T11:04:41","date_gmt":"2019-10-25T03:04:41","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=3457"},"modified":"2022-10-05T07:58:30","modified_gmt":"2022-10-04T23:58:30","slug":"set-default-page-on-linux-plesk-using-htaccess","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/set-default-page-on-linux-plesk-using-htaccess","title":{"rendered":"Set default page on Linux plesk using htaccess"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3457\" class=\"elementor elementor-3457\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-17352f54 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"17352f54\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b8c09a6\" data-id=\"b8c09a6\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-861a8df elementor-widget elementor-widget-heading\" data-id=\"861a8df\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How To Set Default Page on Linux Plesk<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6bb9c094 elementor-widget elementor-widget-text-editor\" data-id=\"6bb9c094\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><strong><span style=\"font-size: medium;\">Applies to :<\/span><\/strong><\/p><ul><li>Linux Server<\/li><\/ul><p><strong><span style=\"font-size: medium;\">Requirements<\/span><\/strong><\/p><p>To perform this task, you need to have :<\/p><ul><li>Knowledge in accessing the server via\u00a0SSH\u00a0or\u00a0FTP.<\/li><li>IP address or server hostname.<\/li><li>Your server SSH\/FTP username and password.<\/li><\/ul><p><strong><span style=\"font-size: medium;\">Instructions<\/span><\/strong><\/p><p>You can simply create a file named &#8220;.htaccess&#8221; in the folder where you want to have a DirectoryIndex rule to take effect. In a shared hosting plan, there is a possibility that you will not able to create &#8220;.htaccess&#8221; because you are not allowed to upload or create a filename begin with &#8220;.&#8221; (dot). However, our support will be able to help you to rename the file later.<\/p><p>Copy and paste following line in .htaccess file :<\/p><p>DirectoryIndex default.html index.html index.cgi index.php<\/p><p>Please note that the Apache server will look for the list files, from left to right. In the above example, the Apache server will first look for &#8220;default.html&#8221; to load. If &#8220;default.html&#8221; cannot be found, it looks for &#8220;index.html&#8221; next. If &#8220;index.html&#8221; cannot be found, it looks for &#8220;index.cgi&#8221; next, and so on.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>How To Set Default Page on Linux Plesk Applies to : Linux Server Requirements To perform this task, you need to have : Knowledge in accessing the server via\u00a0SSH\u00a0or\u00a0FTP. IP address or server hostname. Your server SSH\/FTP username and password. Instructions You can simply create a file named &#8220;.htaccess&#8221; in the folder where you want &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/set-default-page-on-linux-plesk-using-htaccess\"> <span class=\"screen-reader-text\">Set default page on Linux plesk using htaccess<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[40],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/3457"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=3457"}],"version-history":[{"count":6,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/3457\/revisions"}],"predecessor-version":[{"id":19168,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/3457\/revisions\/19168"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=3457"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=3457"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=3457"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=3457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}