Load controller with hyphen or underline in URL - Codeigniter

0

I hosted my project made in CodeIgniter 3 on a server using Linux and PHP 7 and I can not load certain links, it gives 404 error.

Controller Name Example: Relatorio_Detalhado.php

Link in url:

http://127.0.0.1/projeto/index.php/relatorio-detalhado/index ou 
http://127.0.0.1/projeto/index.php/relatorio_detalhado/index

Note: The local project on my machine works normally, now when I play in the hosting, I get the 404 error.

    
asked by anonymous 10.08.2017 / 22:18

1 answer

2

Change the file name to Report_ d etalhado.php

as well as in class

class Relatorio_detalhado extends CI_Controller
    
11.08.2017 / 12:42