This is the default code used in the WordPress index.php file. If you need to replace a corrupt or broken index.php (for WordPress) you can use this.
Then simply remove the .txt from the file and you will have a fully fresh copy of the index.php file for WordPress.
If you have a .html file in the wordpress directory, that will load instead of the wordpress php file. Index. htm page will take priority over index.php. So if you have one…remove it!