D
D
Dmitry Kuznetsov2015-08-10 20:21:29
Laravel
Dmitry Kuznetsov, 2015-08-10 20:21:29

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

1 answer(s)
D
Dmitry Kuznetsov, 2015-08-10
@dima9595

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 question

Ask a Question

731 491 924 answers to any question