Welcome Guest, Not a member yet? Register   Sign In
public folder
#1

Hi,

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

"Asking for a friend"  Big Grin
Reply
#2

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/
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#3
Thumbs Up 

(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/
Reply
#4

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

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); 
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB