If you are using the Pagoda Panel, please directly select ThinkPHP5's pseudo static rules in the Pagoda Panel backend ->website ->pseudo static.
If you are using the one click installation of LNMP environment on lnmp.org, please refer to https://lnmp.org/faq/lnmp-vhost-add-howto.html#rewrite Pseudo static configuration.
If you are using PHPStudy, it is recommended to refer to the pseudo static configuration in the video installation tutorial: https://www.fastadmin.net/video/install.html .
Apache Rules
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
Nginx Rules
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}