This commit is contained in:
2024-05-17 10:49:11 +02:00
parent 40f461f46a
commit 90d1c5fd66

View File

@@ -183,9 +183,9 @@ resource "kubectl_manifest" "wordpress_files" {
#log_not_found off;
}
# Deny access to load load-scripts.php, load-styles.php; can be used for DOS attacks;
location ~ \/wp-admin\/load\-(scripts|styles)\.php {
deny all;
}
#location ~ \/wp-admin\/load\-(scripts|styles)\.php {
# deny all;
#}
# START Nginx Rewrites for Rank Math Sitemaps
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;