CodeIgniter Forums
public folder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: public folder (/showthread.php?tid=79264)



public folder - paulkd - 05-19-2021

Hi,

Is there a reason why it's public and not public_html?

"Asking for a friend"  Big Grin


RE: public folder - includebeer - 05-19-2021

It can be what you want. I have it under a completely different name for my website. The host I use define the "public" folder as your domain name. So the content of the "public" folder is in /home/username/domain.com/ and the rest is in /home/username/another-folder-not-publicly-visible/


RE: public folder - paulkd - 05-19-2021

(05-19-2021, 03:55 PM)includebeer Wrote: It can be what you want. I have it under a completely different name for my website. The host I use define the "public" folder as your domain name. So the content of the "public" folder is in /home/username/domain.com/ and the rest is in /home/username/another-folder-not-publicly-visible/



RE: public folder - InsiteFX - 05-20-2021

The only thing is if you change the public to another name spark will not work you need to
edit the spark file and change the path to the new path for it to work.


RE: public folder - includebeer - 05-20-2021

True, I forgot about that. You need to change this line in spark:
PHP Code:
// Path to the front controller
define('FCPATH'__DIR__ DIRECTORY_SEPARATOR 'public' DIRECTORY_SEPARATOR);