oneinstack/config/wordpress.conf
2024-07-15 13:21:08 +08:00

8 lines
165 B
Plaintext

location / {
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~* ^/wp-content/uploads/.*\.php$ {
deny all;
}