I’m happy to let you know that the issue has been solved.
There was an “index.html” in the wp holder that was causing the issue. Hostgator provides a quick wp installation so I used it to install wp on the server. However, an index.html file was created during the installation process for some reasons and since WP calls an index.html file as a home page (if there is), my site was showing the index.html page instead of my index.php page. After deleting the index.html file from the folder, everything worked the way it should be.
Thank you again @narenin for taking time to comment!