“Como remover o público do URL no Codeigniter 4” Respostas de código

Como remover o público do URL no Codeigniter 4

// codeigniter-4

-----------------------------------
 Step 1: Change in App.php File
-----------------------------------
  public $baseURL = 'http://localhost:8080';

  To

  public $baseURL = 'http://localhost/your_project_name/';
  
  * And the second change in the app.php file:
  
  public $uriProtocol = 'REQUEST_URI';

  To

  public $uriProtocol = 'PATH_INFO';
  
--------------------------------------  
 Step 2: Copy index.php and .htaccess
--------------------------------------
--> Visit inside public directory. And 
	copy index.php and .htaccess to codeigniter app root directory.

------------------------------    
 Step 3: Change In index.php    
------------------------------
 $pathsPath = FCPATH . '../app/Config/Paths.php';

 change TO

 $pathsPath = FCPATH . 'app/Config/Paths.php';
Rht

Remova o público do URL no codeigniter

$pathsPath = realpath(FCPATH . '../app/Config/Paths.php');
replace by
$pathsPath = realpath(FCPATH . '../app/Config/Paths.php');
Energetic Echidna

Respostas semelhantes a “Como remover o público do URL no Codeigniter 4”

Perguntas semelhantes a “Como remover o público do URL no Codeigniter 4”

Mais respostas relacionadas para “Como remover o público do URL no Codeigniter 4” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código