N
N
naneri2015-01-23 08:14:06
Laravel
naneri, 2015-01-23 08:14:06

Why are Laravel routes not working on hosting?

There was a problem - uploaded the code to the hosting, migrated, sat in the database - but the site does not go anywhere further than the main site.
Gives an error message -

Not Found
The requested URL /social/public/register was not found on this server.

Although it works locally. At first, even the main page did not open, but I rewrote .htaccess to this:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

On another hosting, such htaccess with Laravel worked for me. And then the main one started to open...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question