URL

2016-03-30 15 views
-2

proje localhost üzerinde iyi çalışıyor bu sunucu laravel bulunan ama sunucusuna yükleyin zaman
URL

 
Not Found

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

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


yalnızca/rota route.php dosya üzerinde çalışmıyor diğer rota çalışıyor gösterir değildi

cevap

1

Sunucunuzda .htaccess yeniden yazmanız gerekiyor. mod_rewrite apache modülünü (veya seçtiğiniz http sunucusuna benzer bir alternatifi) yüklemeniz ve etkinleştirmeniz gerekebilir. benzer uygulamanız için ortak klasör bir .htaccess dosyası vardır

Kontrol:

<IfModule mod_rewrite.c> 
    <IfModule mod_negotiation.c> 
     Options -MultiViews 
    </IfModule> 

    RewriteEngine On 

    # Redirect Trailing Slashes If Not A Folder... 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)/$ /$1 [L,R=301] 

    # Handle Front Controller... 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule^index.php [L] 

    # Handle Authorization Header 
    RewriteCond %{HTTP:Authorization} . 
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 
</IfModule> 

See latest laravel release.