When encountering PC official website projects, we often encounter the need to hide the entry file and enter the domain name to open the homepage of the official website. You need to modify the site’s default load file and pseudo-static configuration to take effect.

The following is how the pagoda panel is modified for nginx1.15. Change the entry file to web.php

1. Set the site’s default document to web.php

2. Configure the site to be pseudo-static

3. Modify the. Htaccess file in the running directory of TP website

4. It may be necessary to change the default control of TP to and method names. The configuration file is located at thinkphp/convention.php



5, enter the domain name to visit the website home page.