php - Laravel 5.1 views not found and got error 404 on site navigation -


i'm trying write project framework. when upload site in shared host, got error 404 in of site links, except site home page. while site works fine in xampp.

my code:

html:

      <li>           <a href="soon">               آرشیو مقاله           </a>       </li>       <li>           <a href="contact">               ارتباط با ما           </a>       </li>        <li>           <a href="about">               درباره ما           </a>        </li> 

routes.php:

route::get('/', function () {      return view('home'); });  route::get('/soon', 'navigationcontroller@soon'); route::get('/about', function () {      return view::make('about'); }); route::get('/contact', function () {      echo 'contact '; }); 

navigationcontroller.php :

<?php  namespace app\http\controllers;  use illuminate\http\request;  use app\http\requests;  use app\http\controllers\controller;   class navigationcontroller extends controller  {     function soon(){        return view('soon');     }  }  

how can fix problem?

possible shared hoster not support mod_rewrite or has not activated extension webspace?


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -