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
- The wp-admin url for each site does not work on WordPress multisite
- Redirect Main Site to Subsite in Multisite WordPress
- Create mobile site with same content just different theme
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- WordPress Multisite, NGINX and WordPress Subdirectory Install
- How to hide or remove unwanted widgets on Multisite installation?
- WordPress Multisite with multiple domains using Nginx
- How can I diagnose a slow WordPress admin?
- How to enable a site administrator to edit users in a WordPress network/ multisite setup?
- WP-Admin not working properly at WordPress multisite with subdirectories
- How to disable Multisite sign-up page?
- WordPress Multisite with NGINX, subfolders, and FROM a subfolder
- Security in WordPress plugin development
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- WordPress multisite,several different languages,page redirect?
- WordPress Multisite – Multiple subfolders for blogs
- WordPress multisite subdirectory redirect infinite loop issue
- Multisite 404 errors and non-www redirecting to home page
- Hide a theme on list of themes in wp-admin without editing core files
- multisite htaccess 301 redirects
- NGINX Multisite Rewrite rules
- Difference Between Admin and Super Admin in Database
- wp-admin slow in multisite
- Don’t allow access to wp-admin but allow admin-ajax requests to be fulfilled on frontend?
- Timeout While Upgrading Network in Multi-site
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- 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 – Redirect All Users to Subsite Home Page on Subsite Login
- Copy posts from one blog to another in multisite environment
- Multisite non www domain gives registration error but should redirect to www.domain.com
- 301 Redirects for posts, category, pages from original domain to sub-domain of multisite
- My subsites accidentally went from one multisite network to another. How do I change it back?
- Trying to access second site dashboard on a multisite configuration proceeds to an error
- Manipulate list of themes in wp-admin
- Why wordpress multisite redirect to wp-signup if site exists?
- Creating a Post form outside of the Admin
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- Multisite WordPress nginx uploaded files throw 404
- WordPress Installation for multi-domains with nginx and php-fpm
- How to remove Broken Link Checker widget from admin menu
- Sub-subdomain getting redirected to main domain
- how do I configure nginx for wordpress multisite, it occurs ERR_TOO_MANY_REDIRECTS
- How to set Active plugins as the default screen?
- Why can’t I delete original user in multisite? Options for manual removal
- 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
- Disable domain redirect
- Why does the My Site dropdown show only a single domain?
- Redirect users on logout
- Multisite, multiple domains per site
- Super admin access to a forgotten WP instance?
- Multisite Network menu links not updating
- How to run a subdirectory multisite install under a subdomain
- How to disable the default WordPress redirect to non-www URLs?
- https redirect hell (adding www)
- Auto Redirect after login
- WPMU Development Environment
- Redirect subdomain in Multisite installation?
- Issue with htaccess redirection in WP Multisite
- NGINX rewrite rules for sub subdomains
- 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
- Multsite redirecting to the main site
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- 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
- Temp URL Redirect Loop
- Installed domain-based Multisite but can’t access wp-admin (redirect loop)
- WP Multisite with Domain Mapping : Preventing User Access to Dashboard
- Redirect Site Geologically
- How to configure Multisite Network with randomized hostnames?
- WordPress Multisite Strange Redirect on Primary Site
- Wrong Redirect/Rewrite Rules?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing
- Nginx Wildcard SSL with WordPress Multisite Subdomains