Small skin panel (phpStudy) about pseudo-static settings

configuration

Configuration path:

“Website” on the left menu bar => click the “Management” button of the website to be configured => click the “pseudo-static” button, enter the pseudo-static code, and restart Nginx .

example

 if (!-e $request_filename ) { rewrite ^(.*)$ /index.php?s= $1 last ; break;}

The above is the Nginx pseudo-static code of Thinkphp. After inputting in the input box, it will be transformed into:

 #nginx配置location / { index index.html index.htm index.php l.php; autoindex on; # 设置的代码会插入这个地方- 开始if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } # 设置的代码会插入这个地方- 结束}

Pseudo-static for each framework

Thinkphp6

 if (!-e $request_filename ) { rewrite ^(.*)$ /index.php?s= $1 last ; break;}

This article is transferred from https://www.wujingquan.com/posts/fa60b2eb.html
This site is only for collection, and the copyright belongs to the original author.