Solved it adding an annotation to the ingress:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^(/[^/]+)?(/wp-admin)$ $1$2/ break;
rewrite ^(/[^/]+)?(/wp-admin/.*)$ $1$2 break;
And changing the pathtype to ImplementationSpecific
Hey @sebastienserre ! Thank you for your reply. Yes, the URL is defined correctly on wp-config.php, with DOMAIN_CURRENT_SITE, WP_HOME and WP_SITEURL
Adding the NOBLOGREDIRECT didn’t work… You can test it trying to access brick-heading-pan.blogs.prod.stage.rock.works/wp-admin