CodeIgniter Forums
Don't show the public folder when calling my project - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Don't show the public folder when calling my project (/showthread.php?tid=92237)



Don't show the public folder when calling my project - camarjhoa - 12-28-2024

Greetings, I am writing in order to be guided to make my project stop calling the public folder, since I only need it to appear like this: 127.0.0.1/mi_proyecto/ and for it to work I must call it 127.0.0.1/mi_proyecto/public


RE: Don't show the public folder when calling my project - InsiteFX - 12-29-2024

Make sure public is removed from your url.
PHP Code:
// should be - your server path with an ending /.
public string $baseURL 'http://mi_proyecto.local/';

// should be
public string $indexPage '';

All files should be placed in the root of the server.

If 
you change the path then you will need to edit and change it in index,php and spark