1Panel/agent/cmd/server/nginx_conf/rewrite/wp2.conf

6 lines
186 B
Plaintext
Raw Normal View History

2024-07-23 14:48:37 +08:00
rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
if (!-e $request_filename){
rewrite ^.+?(/wp-.*) $1 last;
rewrite ^.+?(/.*\.php)$ $1 last;
rewrite ^ /index.php last;
}