How to show index.html as default page .htaccess

DirectoryIndex index.html default.html index.php

Add above line in .htaccess file to make index.html directory default page. Apache read DirectoryIndex form left to right and serve the file which it find first. So if you have index.html in your directory it will serve index.html as default page.

Author: Pankaj Anupam

I am a Full Stack Web developer working in AngularJS, ReactJS, NodeJS, Javascript & PHP. I am using technologies like HTML5, CSS3, Sass, Bootstrap, D3, Grunt, Bower, CoffeeScript, MongoDB, Graph Database, Sql & Jade. I have hands-on experience of web & mobile optimized application development.


Leave a Reply

Your email address will not be published. Required fields are marked *