0

I am working on Lunux. My created locally webpage works good but after I sent on production server only mainpage is routing, subpages not. For example address https://demo.tiltkomp.pl/ is working but https://demo.tiltkomp.pl/about return "NetworkError: 404 Not Found - https://demo.tiltkomp.pl/about"

my web.php:

Route::get('/', 'PagesController@index');
Route::get('about', 'PagesController@about');

in PagesController.php:

class PagesController extends Controller
{
    public function index(){
        return view('pages.index');
    }

    public function about(){
        return view('pages.about');
    }
}

Where do I make mistake ?

Tomasz
  • 1,368
  • 3
  • 17
  • 31

1 Answers1

0

Please check this answer https://stackoverflow.com/a/28031497/5130217

So in case you using Apache you need to check mod_rewrite enabled and Override allowed in apache2.conf file.

Community
  • 1
  • 1
aleksejjj
  • 1,715
  • 10
  • 21