Answer the question
In order to leave comments, you need to log in
Laravel 4. Why are URLs not working?
The essence of the topic is as follows: I transferred my site to a virtual machine under Ubuntu 14.04 OS. I go to the main page of the site - everything is fine, but if I go to any other route - it throws an error 404: "Not Found. The requested URL /login was not found on this server." If you use the URL as follows, then everything will be fine: "site.ru/index.php/login".
What to do, tell me please!)
I read and tried the options that were proposed in the topics: Why doesn't routing work in Laravel? etc., but for some reason it was not possible to change anything.
If you need any information on any settings - I'll show you. Thanks in advance
Answer the question
In order to leave comments, you need to log in
All figured out. It was necessary to write "sudo a2enmod rewrite" in the server console. And restart Apache.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question