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

6 lines
186 B
Plaintext
Raw Normal View History

2023-04-14 08:01:06 +00: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;
}