By default, the webserver should display the index.php file. In Apache web server, use directoryIndex to directly display the index.php file. The simplest method is to create a new .htaccess file and place it in the WordPress folder. The other method is to configure directives to other files in the webserver.