Dear readers,
Goodnight!

This post will be quick, but very useful for those who are starting to learn more about the Apache web server and its configuration file .htaccess.

Today I'm going to show you how to set the default Apache page loading order, that is, when you simply type in the website's domain, which file Apache will open. By default, the file is index.html, but this can be easily changed as needed.

Using the code below, we define that the default page will be index.php. If this file does not exist, the next file in the list (index.htm) will be loaded and so on, until reaching the last file in the list (pagina.php). If this last file does not exist, Apache will reproduce an error in the browser of your website visitor (Error 403 – Forbidden).

## Pagina padrao ##
DirectoryIndex index.php index.htm index.html pagina.php

That was easy, right?
Until next time.