{"id":5881,"date":"2022-12-30T15:43:40","date_gmt":"2022-12-30T15:43:40","guid":{"rendered":"https:\/\/anymhost.id\/blog\/?p=5881"},"modified":"2022-12-30T15:43:40","modified_gmt":"2022-12-30T15:43:40","slug":"cara-mengganti-file-index-dengan-htaccess","status":"publish","type":"post","link":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/","title":{"rendered":"Cara Mengganti File Index Dengan .htaccess"},"content":{"rendered":"<p>Secara default server web hosting yang digunakan AnymHost akan menampilkan halaman tertentu untuk nama domain kamu, halaman ini berasal dari file index, dengan nama index.php atau index.html. Jika server tidak menemukan file index tersebut, biasanya akan menampilkan <strong>Error 404<\/strong>. Nah untuk itu pada panduan ini kami akan membagikan cara mudah untuk mengubah file index dengan nama file yang kamu inginkan.<\/p>\n<p>Langkah pertama, pastikan kamu sudah mempunyai file .htaccess yang terletak di folder root domain atau lokasi lain yang kamu tentukan. Jika belum ada kamu bisa membuat file baru dan beri nama <strong>.htaccess<\/strong> ingat pastikan nama file sama agar bisa terbaca server.<\/p>\n<p>Selanjutnya jika file .htaccess sudah ada kamu bisa buka filenya dan tambahkan baris berikut di bagian paling atas<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">DirectoryIndex home.php<\/pre>\n<p>Kamu bisa mengubah home.php dengan nama file yang akan kamu gunakan sebagai index. Jika sudah, pastikan untuk klik save file dan lihat perubahannya.<\/p>\n<p>Nah itulah cara singkat untuk mengubah file index, semoga bisa membantu kamu. Jika ada masalah setelah mengubah file .htaccess ini kamu bisa bertanya dengan support agent kami.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Secara default server web hosting yang digunakan AnymHost akan menampilkan halaman tertentu untuk nama domain kamu, halaman ini berasal dari file index, dengan nama index.php atau index.html. Jika server tidak menemukan file index tersebut, biasanya akan menampilkan Error 404. Nah untuk itu pada panduan ini kami akan membagikan cara mudah untuk mengubah file index dengan [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5882,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83],"tags":[],"class_list":["post-5881","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-panduan"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cara Mengganti File Index Dengan .htaccess - AnymHost<\/title>\n<meta name=\"description\" content=\"Cara mengganti file index dengan .htaccess ini bisa kamu lakukan dengan mudah hanya perlu menambahkan satu baris kode dan nama file\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cara Mengganti File Index Dengan .htaccess - AnymHost\" \/>\n<meta property=\"og:description\" content=\"Cara mengganti file index dengan .htaccess ini bisa kamu lakukan dengan mudah hanya perlu menambahkan satu baris kode dan nama file\" \/>\n<meta property=\"og:url\" content=\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"AnymHost\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/anymhost\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/anymhost\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-30T15:43:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"AnymHost\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"AnymHost\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/\"},\"author\":{\"name\":\"AnymHost\",\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/person\/4a673b7412cc2b184046c4ef470d5515\"},\"headline\":\"Cara Mengganti File Index Dengan .htaccess\",\"datePublished\":\"2022-12-30T15:43:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/\"},\"wordCount\":177,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/anymhost.id\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg\",\"articleSection\":[\"Panduan\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/\",\"url\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/\",\"name\":\"Cara Mengganti File Index Dengan .htaccess - AnymHost\",\"isPartOf\":{\"@id\":\"https:\/\/anymhost.id\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg\",\"datePublished\":\"2022-12-30T15:43:40+00:00\",\"description\":\"Cara mengganti file index dengan .htaccess ini bisa kamu lakukan dengan mudah hanya perlu menambahkan satu baris kode dan nama file\",\"breadcrumb\":{\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#primaryimage\",\"url\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg\",\"contentUrl\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg\",\"width\":900,\"height\":350,\"caption\":\"Cara Mengganti File Index dengan .htaccess\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/anymhost.id\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cara Mengganti File Index Dengan .htaccess\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/anymhost.id\/blog\/#website\",\"url\":\"https:\/\/anymhost.id\/blog\/\",\"name\":\"AnymHost\",\"description\":\"Artikel Tips &amp; Berita Website Terbaru\",\"publisher\":{\"@id\":\"https:\/\/anymhost.id\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/anymhost.id\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/anymhost.id\/blog\/#organization\",\"name\":\"AnymHost\",\"url\":\"https:\/\/anymhost.id\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/11\/anymhost-6-min.png\",\"contentUrl\":\"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/11\/anymhost-6-min.png\",\"width\":540,\"height\":540,\"caption\":\"AnymHost\"},\"image\":{\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/anymhost\",\"https:\/\/instagram.com\/anymhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/person\/4a673b7412cc2b184046c4ef470d5515\",\"name\":\"AnymHost\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/anymhost.id\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f591cd1539c8864b0f288fce80e26362d56b0c69e4a6b34c4a123822212a57be?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f591cd1539c8864b0f288fce80e26362d56b0c69e4a6b34c4a123822212a57be?s=96&d=identicon&r=g\",\"caption\":\"AnymHost\"},\"description\":\"Dapatkan tutorial seputar website dan server disini supaya kamu tidak perlu bingung lagi. Jangan lupa kasih Feedback untuk Tutorialnya biar kita bisa berikan yang terbaik khusus buat Kamu\",\"sameAs\":[\"https:\/\/anymhost.id\/\",\"https:\/\/www.facebook.com\/anymhost\",\"https:\/\/www.instagram.com\/anymhost\/\"],\"url\":\"https:\/\/anymhost.id\/blog\/author\/anymhost\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cara Mengganti File Index Dengan .htaccess - AnymHost","description":"Cara mengganti file index dengan .htaccess ini bisa kamu lakukan dengan mudah hanya perlu menambahkan satu baris kode dan nama file","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"Cara Mengganti File Index Dengan .htaccess - AnymHost","og_description":"Cara mengganti file index dengan .htaccess ini bisa kamu lakukan dengan mudah hanya perlu menambahkan satu baris kode dan nama file","og_url":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/","og_site_name":"AnymHost","article_publisher":"https:\/\/www.facebook.com\/anymhost","article_author":"https:\/\/www.facebook.com\/anymhost","article_published_time":"2022-12-30T15:43:40+00:00","og_image":[{"width":900,"height":350,"url":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg","type":"image\/jpeg"}],"author":"AnymHost","twitter_card":"summary_large_image","twitter_misc":{"Written by":"AnymHost","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#article","isPartOf":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/"},"author":{"name":"AnymHost","@id":"https:\/\/anymhost.id\/blog\/#\/schema\/person\/4a673b7412cc2b184046c4ef470d5515"},"headline":"Cara Mengganti File Index Dengan .htaccess","datePublished":"2022-12-30T15:43:40+00:00","mainEntityOfPage":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/"},"wordCount":177,"commentCount":0,"publisher":{"@id":"https:\/\/anymhost.id\/blog\/#organization"},"image":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg","articleSection":["Panduan"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/","url":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/","name":"Cara Mengganti File Index Dengan .htaccess - AnymHost","isPartOf":{"@id":"https:\/\/anymhost.id\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#primaryimage"},"image":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg","datePublished":"2022-12-30T15:43:40+00:00","description":"Cara mengganti file index dengan .htaccess ini bisa kamu lakukan dengan mudah hanya perlu menambahkan satu baris kode dan nama file","breadcrumb":{"@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#primaryimage","url":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg","contentUrl":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/12\/Cara-Mengganti-File-Index.jpg","width":900,"height":350,"caption":"Cara Mengganti File Index dengan .htaccess"},{"@type":"BreadcrumbList","@id":"https:\/\/anymhost.id\/blog\/cara-mengganti-file-index-dengan-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/anymhost.id\/blog\/"},{"@type":"ListItem","position":2,"name":"Cara Mengganti File Index Dengan .htaccess"}]},{"@type":"WebSite","@id":"https:\/\/anymhost.id\/blog\/#website","url":"https:\/\/anymhost.id\/blog\/","name":"AnymHost","description":"Artikel Tips &amp; Berita Website Terbaru","publisher":{"@id":"https:\/\/anymhost.id\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/anymhost.id\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/anymhost.id\/blog\/#organization","name":"AnymHost","url":"https:\/\/anymhost.id\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/anymhost.id\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/11\/anymhost-6-min.png","contentUrl":"https:\/\/anymhost.id\/blog\/wp-content\/uploads\/2022\/11\/anymhost-6-min.png","width":540,"height":540,"caption":"AnymHost"},"image":{"@id":"https:\/\/anymhost.id\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/anymhost","https:\/\/instagram.com\/anymhost"]},{"@type":"Person","@id":"https:\/\/anymhost.id\/blog\/#\/schema\/person\/4a673b7412cc2b184046c4ef470d5515","name":"AnymHost","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/anymhost.id\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f591cd1539c8864b0f288fce80e26362d56b0c69e4a6b34c4a123822212a57be?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f591cd1539c8864b0f288fce80e26362d56b0c69e4a6b34c4a123822212a57be?s=96&d=identicon&r=g","caption":"AnymHost"},"description":"Dapatkan tutorial seputar website dan server disini supaya kamu tidak perlu bingung lagi. Jangan lupa kasih Feedback untuk Tutorialnya biar kita bisa berikan yang terbaik khusus buat Kamu","sameAs":["https:\/\/anymhost.id\/","https:\/\/www.facebook.com\/anymhost","https:\/\/www.instagram.com\/anymhost\/"],"url":"https:\/\/anymhost.id\/blog\/author\/anymhost\/"}]}},"_links":{"self":[{"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/posts\/5881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/comments?post=5881"}],"version-history":[{"count":0,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/posts\/5881\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/media\/5882"}],"wp:attachment":[{"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/media?parent=5881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/categories?post=5881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anymhost.id\/blog\/wp-json\/wp\/v2\/tags?post=5881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}