0
votes

I developed a website in laravel and uploaded to web server. I uploaded all the files and folders into the root directory and the files of public folder to public_html. Now when I type the URL to my browser the home page works fine but my other routes are showing

Not Found

The requested URL /schedules was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 

In the laravel documentation, I found that "Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run."

Is it the reason for this. If yes then how can I do this?

1
Did you copy .htaccess file to public_html as well? - Seva Kalashnikov
There is no .htaccess file on my localhost - user2471544
There's always one which allows you to use friendly urls like /schedules - Seva Kalashnikov
If you have a macbook and using Finder you probably can't see it because it hides all the files starting with a dot like ".htaccess" - Seva Kalashnikov
Yes, actually I checked now and it is there. And I have uploaded all the files using ftp. But in my host the fills without the name but a extension are not showing.. - user2471544

1 Answers

1
votes

Since your new hosting/server is running Apache, make sure you copied .htaccess