Host site in laravel [duplicate]

2

I have a project in Laravel. When I put my files to my hosting server and access the domain, it shows me the files and folders instead of redirecting me to the index.

On my machine I create a virtualhost pointing to the public folder where the .htaccess is located. But on my hosting server I do not know how to do this redirect.

I use HostGator hosting and put the files on the server via FTP. Inside the public_html folder.

Could anyone help me?

    
asked by anonymous 05.02.2018 / 22:26

1 answer

-1

In your server's public_html folder, put all files in the public folder of your project.

Now at the root of your server (outside of public_html), you upload all other files.

Follow Fonte .

    
07.02.2018 / 12:19