2017-08-20 5 views
0

私はブログをオンラインにしましたが、私のリンクは機能しません。私はメインページしか見ることができません。メニューをクリックするとエラー500が表示されます。ウェブサイト4thquarter.alexandrehamed.comのリンクはDBは空ですので、何も表示されていないと正常です。laravel 5.4 error 500

ご協力ありがとうございますstorage/logs/laravel.log - ここでは非常に厄介な)

私のhtaccessファイル

enter image description here

exemple of i have route.php: 
Route::get('',[ 
    'uses' =>'[email protected]', 
    'as' =>'home.content' 
]); 
Route::get('/blog/{post}',[ 
    'uses' => '[email protected]', 
    'as' => 'home.show', 
]); 

Route::get('/statistiques',[ 
    'uses' => '[email protected]', 
    'as' => 'home.stats' 
+0

500で解決策を見つけます。 Webサーバーのログファイルを調べる必要があります。 – Devon

答えて

0

の画面には、ログファイルを見てみましょう。お使いの環境にAPP_KEYを設定していない可能性があります。その場合は、php artisan key:generate --showで生成し、.envファイルにポップします。

+0

私はすでにapp_keyを作成しています –

1

は私が何を意味するかもしれません。このhtaccessの

DirectoryIndex index.php 

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

    RewriteEngine On 

    RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ 
    RewriteRule ^(.*) - [E=BASE:%1] 

    RewriteCond %{ENV:REDIRECT_STATUS} ^$ 
    RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L] 

    RewriteCond %{REQUEST_FILENAME} -f 
    RewriteRule .? - [L] 

    RewriteRule .? %{ENV:BASE}/index.php [L] 

</IfModule>