oneinstack/config/wordpress.conf

8 lines
165 B
Plaintext
Raw Normal View History

2024-07-15 13:21:08 +08:00
location / {
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~* ^/wp-content/uploads/.*\.php$ {
deny all;
}