0

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?

14
  • Did you copy .htaccess file to public_html as well? Commented Aug 1, 2016 at 15:13
  • There is no .htaccess file on my localhost Commented Aug 1, 2016 at 15:14
  • 1
    There's always one which allows you to use friendly urls like /schedules Commented Aug 1, 2016 at 15:14
  • 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" Commented Aug 1, 2016 at 15:16
  • 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.. Commented Aug 1, 2016 at 15:16

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.