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:

  1. statistik.sahabatkartini.com
  2. blog.sahabatkartini.com

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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -