php - Laravel 4 - How to fix Internal Server Error 500 in all subdomains -
i have url sahabatkartini.com. build web laravel 4. after upload it, subdomains internal server error 500 , sub domain folder appears in url.
please take @ link:
i suspect cause laravel's .htaccess file
<ifmodule mod_rewrite.c> <ifmodule mod_negotiation.c> options -multiviews </ifmodule> rewriteengine on # redirect trailing slashes... rewriterule ^(.*)/$ /$1 [l,r=301] # handle front controller... rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ index.php [l] </ifmodule>
how fix this? thank help.
add in global.php
:
app::error(function(exception $exception, $code){ log::error($exception); $message = $exception->getmessage(); switch ($code) { case 500: return response::json(array('error'=>array( 'code' => 500, 'message' => $message )), 500); }});
Comments
Post a Comment