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
- 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?
- 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
- Hide a theme on list of themes in wp-admin without editing core files
- NGINX Multisite Rewrite rules
- Difference Between Admin and Super Admin in Database
- 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
- Multisite – Redirect All Users to Subsite Home Page on Subsite Login
- Copy posts from one blog to another in multisite environment
- 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?
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- Multisite WordPress nginx uploaded files throw 404
- How to remove Broken Link Checker widget from admin menu
- 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
- Disable domain redirect
- Redirect users on logout
- How to run a subdirectory multisite install under a subdomain
- WPMU Development Environment
- Issue with htaccess redirection in WP Multisite
- NGINX rewrite rules for sub subdomains
- Multsite redirecting to the main site
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Temp URL Redirect Loop
- 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
- URL without www redirect directly with submission page – Multiwordpress install
- WordPress Multisite + Erros with URLS and ADMIN
- Redirect old uploads after moving to multisite
- 301’s not working with multisite
- Multisite, Subdomain, shared NFS directory Linux HELP
- Nginx — WordPress multisite with root folder in own directory
- Multisite Subdomain Redirect Mask
- Help with multisite redirect issues using Cherokee OR solid nginx config?
- Network Admin URL is shown to anyone before accessing a blog
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- Site’s admin created with wpmu_create_blog accessible only on 2nd attempt
- WordPress in subdirectory, Multisite using subdomains Nginx
- 301 Redirection After Comment
- Is There A Plugin to Create WP Multisite Installs programatically
- Can’t log in to wp-admin after setting up Multisite
- Multisite Redirect for Home Page Only
- How to redirect user after session timeout
- Why WordPress w/ Nginx Multisite Only Lets Admin Upload ZIP Plugins But Not Themes? [closed]
- Redirecting specific sites to HTTP in WordPress Multisite
- Redirect Function Prevents Images from Showing in Front-end Media Uploader
- Possible to reverse proxy WP multisite to a separate server with NGINX?
- How to make the redirects right? IP to domain name folders
- Multisite network admin login redirect
- WordPress Multisite: Login to all subsites at once
- WordPress multisite redirect one custom non www domain to www
- Multisite – cannot remove specific sub-menu its parent menu. All sub-menus disappear
- Multisite WordPress Configurtion
- Redirecting two Multisite domains to Single site on different host
- All Subsites of a WordPress Multisite install 302 redirects to the main site
- Multisite install in a subfolder won’t work with www
- Multisite login and redirect to users main blog,
- Why does defining MULTISITE true change the database connection in use
- Redirect all users, except network administrators, from the main site to a subsite
- Make a select where the options are the different multisites
- How to redirect author subdomain pages to each author pages on www
- Redirect extra url to Multisite in folder
- Multisite move server giving redirect loop
- Development (multi)site indexed – recommendations to redirect 301 to correct url?
- Redirect authors from upload.php url to Home page in Multisite
- How to redirect root blog to a specific one in multilang WP?
- External rewrite rules missing in htaccess – Multisite
- Multisite Primary Domain Broken All Subsites Work
- Make multisite non-existing subdomains go to homepage instead of Index of/ page