Set the website running directory to public

Hello, I am a novice, please understand

Using the ThinkPHP framework

You need to set the running directory of the website to public and pseudo static

By default the directory is public_html and if you want to change that you have to go to the host and change the root directory to the public

1 Like

You have to configure your virtual host for the particular domain and set the file directory to the public, frameworks like such and symphony required your path to be set to public otherwise 404 will be thrown “can’t see such fill on the server”. You can pretty much do that easily with a few clicks with the LiteSpeed server GUI.