Hello everyone,
I’m using Cakephp 3.2, and I have used the baker to generate my code.
Saddly I have noticed that whenever I try to access the index action(http://www.mys-site.local/fichiers) on my (FichiersController) I’m being redirected to http://www.mys-site.local/webroot/fichiers/
After checking the http response I noticed that the status code is: 301 Moved Permanently (from cache)
on the other hand I didn’t edit the index action at all and here is its content:
public function index()
{
$fichiers = $this->paginate($this->Fichiers);
$this->set(compact('fichiers'));
$this->set('_serialize', ['fichiers']);
}