{"id":2319,"date":"2020-11-23T04:57:34","date_gmt":"2020-11-23T04:57:34","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=2319"},"modified":"2025-08-28T04:49:59","modified_gmt":"2025-08-28T04:49:59","slug":"how-to-change-default-index-page-in-apache","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/","title":{"rendered":"How To Change Default Index Page in Apache"},"content":{"rendered":"\n<p>When we install Apache server, it contains a default index page that is loaded when we open web browser and visit our IP or domain. It just says &#8216;It Works&#8217; and nothing else. But for every website, you will eventually need to change the default index page to the home page of your website\/blog. In this article, we will look at how to change default index page in Apache Web Server.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#How_To_Change_Default_Index_Page_in_Apache_Web_Server\" >How To Change Default Index Page in Apache Web Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#Using_Apache_Configuration_File\" >Using Apache Configuration File<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#1_Backup_Apache_Configuration\" >1. Backup Apache Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#2_Open_Apache_Configuration_File\" >2. Open Apache Configuration File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#3_Change_DirectoryIndex_Directive\" >3. Change DirectoryIndex Directive<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#4_Restart_Apache_Server\" >4. Restart Apache Server<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#Using_htaccess\" >Using .htaccess<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#1_Open_htaccess_File\" >1. Open .htaccess File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#2_Add_DirectoryIndex\" >2. Add DirectoryIndex<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#3_Restart_Apache_Server\" >3. Restart Apache Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#4_Verify_Changes\" >4. Verify Changes<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_To_Change_Default_Index_Page_in_Apache_Web_Server\"><\/span>How To Change Default Index Page in Apache Web Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are the steps to change default index page in Apache web server. You can change default index page via Apache Server configuration file, or using .htaccess file. We will look at both approaches below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_Apache_Configuration_File\"><\/span>Using Apache Configuration File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Backup_Apache_Configuration\"><\/span>1. Backup Apache Configuration<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Apache configuration file is present at one of the following locations depending on your installation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/etc\/apache2\/httpd.conf<\/code><\/li>\n\n\n\n<li><code>\/etc\/apache2\/apache2.conf<\/code><\/li>\n\n\n\n<li><code>\/etc\/httpd\/httpd.conf<\/code><\/li>\n\n\n\n<li><code>\/etc\/httpd\/conf\/httpd.conf<\/code><\/li>\n<\/ul>\n\n\n\n<p>Run the following command to take its backup. Update file path to Apache configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo cp \/etc\/apache2\/httpd.conf \/etc\/apache2\/httpd-backup.conf<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Open_Apache_Configuration_File\"><\/span>2. Open Apache Configuration File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Open terminal and run the following command to open Apache configuration file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/apache2\/httpd.conf<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Change_DirectoryIndex_Directive\"><\/span>3. Change DirectoryIndex Directive<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You will see the following lines of code. Look for <a href=\"https:\/\/www.oreilly.com\/library\/view\/apache-the-definitive\/0596002033\/ch07s02s01.html\">DirectoryIndex<\/a> directive.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\n# DirectoryIndex: sets the file that Apache will serve if a directory\n# is requested.\n#\n&lt;IfModule dir_module&gt;\n    DirectoryIndex index.html index.php\n&lt;\/IfModule&gt;<\/pre>\n\n\n\n<p>Change <em>index.html index.php<\/em> to your choice of web page (e.g home.html). It is important to remove index.html index.php unless your home page has same file name.<\/p>\n\n\n\n<pre id=\"block-699c9225-b8a2-4af4-bafe-295dc268ce7a\" class=\"wp-block-preformatted\">&lt;IfModule dir_module&gt;\n    DirectoryIndex home.html\n&lt;\/IfModule&gt;<\/pre>\n\n\n\n<p>Make sure you have placed this file home.html at <em>\/var\/www\/html\/<\/em>. This is the directory where Apache will look for index page, when users request your website&#8217;s domain. If you have placed it in a different folder (e.g <em>\/var\/www\/html\/product\/<\/em>) then modify the path above accordingly (e.g <em>\/product\/home.html<\/em>).<\/p>\n\n\n\n<pre id=\"block-4045ad47-47d9-4c22-9d51-ec0e9ad3b04a\" class=\"wp-block-preformatted\">&lt;IfModule dir_module&gt;\n    DirectoryIndex \/product\/home.html\n&lt;\/IfModule&gt;<\/pre>\n\n\n\n<p>You can also add multiple index pages to Apache as shown below. In this case, Apache will try loading the pages one by one, from left to right. In case any page is not available, the page mentioned after it will be loaded.<\/p>\n\n\n\n<pre id=\"block-4045ad47-47d9-4c22-9d51-ec0e9ad3b04a\" class=\"wp-block-preformatted\">&lt;IfModule dir_module&gt;\n    DirectoryIndex home.html welcome.html\n&lt;\/IfModule&gt;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Restart_Apache_Server\"><\/span>4. Restart Apache Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Restart Apache web server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo service apache2 restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_htaccess\"><\/span>Using .htaccess<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Often site administrators do not have access to Apache configuration file, or they do not want to change it. In such cases, you can use .htaccess file available after enabling mod_rewrite module in your Apache server. You can also change default index page for Apache using .htaccess. It is commonly used to redirect one page to another in Apache server. Before proceeding, please enable mod_rewrite (.htaccess) in your Apache web server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Open_htaccess_File\"><\/span>1. Open .htaccess File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Open .htaccess file, typically located at \/var\/www\/html\/.htaccess<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/var\/www\/html\/.htaccess<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Add_DirectoryIndex\"><\/span>2. Add DirectoryIndex<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Add the following line to .htaccess file to set index page to home.html.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">DirectoryIndex home.html<\/pre>\n\n\n\n<p>You can also mention multiple pages, in case you want to load another page, if one is not available. In this example, home.html will be loaded first. If it is not available, index.html will be loaded.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">DirectoryIndex home.html index.html<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Restart_Apache_Server\"><\/span>3. Restart Apache Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Restart Apache web server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo service apache2 restart<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Verify_Changes\"><\/span>4. Verify Changes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>That&#8217;s it. Open browser and visit <em>http:\/\/your_server_or_ip<\/em> and you will see the new page. Replace <em>your_server_or_ip<\/em> with your domain name, or server IP address.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, we have learnt how to change default index page of Apache server. It is essential to point it to your website or blog&#8217;s home page. It is best to enable mod_rewrite on your Apache server and make changes in it, instead of modifying Apache server config file. Otherwise, your users will continue to see the default Apache page.<\/p>\n\n\n\n<p><a href=\"http:\/\/ubiq.co\/\">Ubiq<\/a>&nbsp;makes it easy to visualize data in minutes, and monitor in real-time dashboards.&nbsp;<a href=\"http:\/\/ubiq.co\/accounts\/register\">Try it<\/a>&nbsp;Today!<\/p>\n\n\n\n<p>Also read : <br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-install-mod_security-on-centos-7\/\">How to Install mod_security on CentOS 7<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-timezone-in-apache-php\/\">How to Change Timezone in Apache\/PHP<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-apache\/\">How to Create Custom 404 Page in Apache<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is how to change default index page in .htaccess for your website.<\/p>\n","protected":false},"author":1,"featured_media":2329,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[234],"class_list":["post-2319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-default-page"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Change Default Index Page in Apache - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Here is how to change default index page in .htaccess for your website. Change it from default index.html and index.php.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Change Default Index Page in Apache - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Here is how to change default index page in .htaccess for your website. Change it from default index.html and index.php.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-23T04:57:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-28T04:49:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/apache-change-index-page.png\" \/>\n\t<meta property=\"og:image:width\" content=\"650\" \/>\n\t<meta property=\"og:image:height\" content=\"448\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How To Change Default Index Page in Apache\",\"datePublished\":\"2020-11-23T04:57:34+00:00\",\"dateModified\":\"2025-08-28T04:49:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/\"},\"wordCount\":625,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/apache-change-index-page.png?fit=650%2C448&ssl=1\",\"keywords\":[\"default page\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/\",\"name\":\"How To Change Default Index Page in Apache - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/apache-change-index-page.png?fit=650%2C448&ssl=1\",\"datePublished\":\"2020-11-23T04:57:34+00:00\",\"dateModified\":\"2025-08-28T04:49:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Here is how to change default index page in .htaccess for your website. Change it from default index.html and index.php.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/apache-change-index-page.png?fit=650%2C448&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/apache-change-index-page.png?fit=650%2C448&ssl=1\",\"width\":650,\"height\":448,\"caption\":\"how to change default index page in apache\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-change-default-index-page-in-apache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Change Default Index Page in Apache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Change Default Index Page in Apache - Ubiq BI","description":"Here is how to change default index page in .htaccess for your website. Change it from default index.html and index.php.","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:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/","og_locale":"en_US","og_type":"article","og_title":"How To Change Default Index Page in Apache - Ubiq BI","og_description":"Here is how to change default index page in .htaccess for your website. Change it from default index.html and index.php.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-11-23T04:57:34+00:00","article_modified_time":"2025-08-28T04:49:59+00:00","og_image":[{"width":650,"height":448,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/apache-change-index-page.png","type":"image\/png"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How To Change Default Index Page in Apache","datePublished":"2020-11-23T04:57:34+00:00","dateModified":"2025-08-28T04:49:59+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/"},"wordCount":625,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/apache-change-index-page.png?fit=650%2C448&ssl=1","keywords":["default page"],"articleSection":["Apache"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/","name":"How To Change Default Index Page in Apache - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/apache-change-index-page.png?fit=650%2C448&ssl=1","datePublished":"2020-11-23T04:57:34+00:00","dateModified":"2025-08-28T04:49:59+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Here is how to change default index page in .htaccess for your website. Change it from default index.html and index.php.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/apache-change-index-page.png?fit=650%2C448&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/apache-change-index-page.png?fit=650%2C448&ssl=1","width":650,"height":448,"caption":"how to change default index page in apache"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-change-default-index-page-in-apache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How To Change Default Index Page in Apache"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/apache-change-index-page.png?fit=650%2C448&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-Bp","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=2319"}],"version-history":[{"count":22,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2319\/revisions"}],"predecessor-version":[{"id":9306,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2319\/revisions\/9306"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/2329"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=2319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=2319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=2319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}