I have migrated my site to the server hostgator and it is not directed to the public folder. Can you tell me why this happens?
You have to configure your server to consider the public
folder as the root of the web server. You must enable mod_rewrite
in Apache as well.
Look in the Hostgator dashboard to change the initial project folder .