Community

Set the website running directory to public

he
hewei #1

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

sh
shoaibkk #2

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

Ar
Arahmzy #3

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.

Sign in to reply