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
Related Posts:
- Multisite wp-admin redirecting to main wp-admin using NGINX
- Multisite wp-admin redirect loop
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- Redirect loop (only for multisite network admin)
- Multisite network admin – URL / redirect error
- WordPress multisite subdirectory on nginx behind reverse proxy
- Nginx config, how can I redirect primary multisite domain, but not its sub-folders, nor other domains?
- WordPress multisite second site admin resulting in too many redirects error
- Admin user getting redirected to /wp-admin/user
- Pages redirect me to the homepage
- Nginx Multisite redirects (incorrectly) on Chrome IE and Mobile, but works (correctly) on Firefox
- WordPress Multisite with NGINX, subfolders, and FROM a subfolder
- Multisite 404 errors and non-www redirecting to home page
- multisite htaccess 301 redirects
- wp-admin slow in multisite
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Nginx rules for subdomain multisite install (Bedrock)
- Redirect all users, except network administrators, from the main site to a subsite
- Multisite non-www domain redirects to sign-up
- Domain redirect in WordPress multisite
- Multisite non www domain gives registration error but should redirect to www.domain.com
- Creating a Post form outside of the Admin
- WordPress Installation for multi-domains with nginx and php-fpm
- Sub-subdomain getting redirected to main domain
- Subdirectory multisite – only root admin available on NGINX
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- Redirect subdomain homepage to domain specific page in wordpress multisite
- Cookie nonce is invalid – Multisite
- Multisite setup on VVV with bedrock
- Multisite Redirect issue
- WordPress mutisite migration
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Why does the My Site dropdown show only a single domain?
- Multisite, multiple domains per site
- Super admin access to a forgotten WP instance?
- Multisite Network menu links not updating
- How to disable the default WordPress redirect to non-www URLs?
- https redirect hell (adding www)
- Auto Redirect after login
- Redirect subdomain in Multisite installation?
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- All pages have 302 redirect, which I can’t remove
- Why my deleted url is redirecting to random post?
- Redirect only posts to New Domain
- Iframe being removed only for some users when publishing a page
- Mapping subdomain to point to sudirectory site in WordPress Multisite Network
- Redirect & permalink problems after moving multisite to a new server
- Installed domain-based Multisite but can’t access wp-admin (redirect loop)
- Redirect Site Geologically
- How to configure Multisite Network with randomized hostnames?
- WordPress Multisite Strange Redirect on Primary Site
- Multisite Redirection to new domains
- Redirect One Multisite to Another
- Site redirecting to http://example.com/wp-signup.php?new=example.com
- WordPress Network (multisite) — how to ensure each site has their own admin URL?
- WordPress: how to change URL for individual MultiSites?
- 2 website 1 database… Local to online
- How to write RewriteRule for login in multisite
- Network Admin URL is shown to anyone before accessing a blog
- 404 redirecting to home [closed]
- Site’s admin created with wpmu_create_blog accessible only on 2nd attempt
- How to temporarily redirect front page of a network to one of the sites/blogs?
- Some permalinks are not working and show 404
- Working with Reverse Proxies and Multisite Installation
- Infamous admin login redirect
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- Two installs conflicting – Pages redirecting
- Setup another new subdomain root on top of multisite configuration
- Redirect a WordPress Multisite url after it has been change to a new one
- Redirect Function Prevents Images from Showing in Front-end Media Uploader
- multisite 404 subfolder same name slug as site
- After switch domain, some parts of my site still point to my old domain
- How to make the redirects right? IP to domain name folders
- wordpress.mydomian.com 404 Error
- WordPress multisite redirect one custom non www domain to www
- How to Add Super Admin for WordPress multi-site
- network admin pages not linked to correctly
- How do I point two urls to the same child site in a multisite config
- Nginx rules for subdomain multisite install (Bedrock)
- How to have same admin login for more than one site?
- Multisite install in a subfolder won’t work with www
- WP Admin Panel for Multi-site install not loading JavaScript for one Subdomain
- WordPress Multisite FQDN Admin Access
- Backend freezing on certain pages of a subsite
- WordPress Multisite redirect loop
- Using www along with non-www for main domain in multisite installation
- Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
- WordPress on Nginx – Missing admin/toolbar
- Multisite redirect loop for a single www domain
- WordPress 3.0 Multisite – Child sites and backends appearing blank
- Nice font not working when http to https – SSL Issue
- Many big issues in the website, WP_Debug not showing
- Multisite Primary Domain Broken All Subsites Work
- wordpress multisite is broken in nginx but working in apache
- Make multisite non-existing subdomains go to homepage instead of Index of/ page
- What could be changing my WP password and blocking plugins from installing?
- WordPress multisite with subdomains behind nginx reverse proxy using subdirectories
- Unable to change blog language in multisite
- Multisite logged into one wp-admin, move to another sites wp-admin asked to login again
- Cant access subdomain after multisite subdirectory install