This fixes the problem:
remove_action('template_redirect', 'redirect_canonical');
Related Posts:
- How to force a 404 on WordPress
- Redirect Restricted Page to 404
- How to prevent automatic redirection of 404 errors and “incorrect” URLs?
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- How do I programmatically generate a 404?
- How do I skip wordpress’s 404 handling?
- 404 redirection and Google’s index [closed]
- Redirect feed to 404 page
- Check if post is in draft or pending review?
- Why specific file directory fails to redirect but its parent folder succeeds?
- WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]
- Deny access to a path (give 403 or 404 response)
- Redirect a page id url but not the page slug
- Defining a custom 404 for non-WordPress parts of site
- WordPress Auto-Redirecting on 404
- Built-In Postname Redirection vs Hard Redirects in relation to SEO and performance
- How to redirect a wrong search on my wordpress website to the error 404 page?
- WP page 404 error only on mobile
- Force 404 redirect to home?
- Redirect Attachment Page to Attachment
- Create a permalink to a pdf?
- How can I redirect users on the new 404 page without plugin?
- How to redirect an old page url to the homepage
- Dynamic 404 page content while still keeping 404 status code?
- Redirect to home if page doesn’t exists [duplicate]
- Redirect to parent page if child does not exist
- How to redirect non existent pages/posts in wordpress using htaccess
- How to Redirect WordPress domain.com/?anyword to 404 Page?
- How do I redirect the browser to 404 page, if no posts are found in home page
- How do i make WordPress return 404 instead of redirecting on misspelled page?
- How to redirect if 404 error in wordpress then redirect 404.php url
- Redirect to /404/
- 301 Redirect Link to Media
- Page editing in backend redirecting to 404 page not found with url /post.php
- How do I skip wordpress’s 404 handling?
- Subpages return 404 server error
- WordPress subfolders htaccess bypassing the root htaccess RewriteRule
- Why my htacess rewrite return 404?
- How to Redirect Url to homepage?
- Forcing header cache control in 404 pages
- redirect to 404 page
- Redirect certain 404 pages to parent page
- How to prevent wordpress from redirecting media attachment page to media page?
- Redirect of specific words in URL ahead of website migration
- How to forward all requests starting with a specific folder name to the same folder
- Issue redirecting ‘blog’ to ‘news’ in WordPress using .htaccess
- Use two different index pages
- How to redirect from one WP site to another
- Extra Text in URL
- Redirect /home to home.php
- WP_List_table with form of method=GET redirects to wrong url after submit
- WordPress localhost site always redirect to live site [closed]
- Redirect wordpress website’s subpage to root [closed]
- Can’t do 301 Redirect, Why?
- Redirect old query string URLs to new add_rewrite_rule URL
- WordPress Permalink Problem 404
- Is there way to redirect all blog post pages to Home page?
- Interested in redirection techniques for one-page themes
- Select post from dropdown and add query args not working
- Trying to map a PURL like url to a page
- A change in URL slug in database returns 404, how can I do auto-redirect?
- A question about .htaccess
- Can’t login to WordPress admin panel after changing domain to use WordPress pages as a fallback from React
- Why do my new WordPress pages redirect to home / staging site?
- WordPress multi domain: page redirect to main domain whenever WordPress do the URL guessing issue
- Puzzled at HTTP/2 301 response header
- date based redirect in wordpress
- Applying ‘middleware’ to a url before redirecting? Does WP have built in mechanism for this?
- ErrorDocument 410 gives me back a 302 header
- ERR_TOO_MANY_REDIRECTS when switching from good database to old database
- Mailjet Email Subscription + Redirect w/ Custom Template Fails
- domain redirects to subdomain
- htaccess Redirect 301 doesn’t work. How to debug?
- Having a different landing page for returning users
- How to create multiple Rewrite-Rule for various site in single htaccess?
- how can i find malware code and remove from wordpress site to stop it redirecting to hackers click view pages
- Redirect after plugin activation
- Redirect affecting development folder
- All devices on my network redirect me to an old domain
- how to write 301 redirect code for woocommerce product
- WordPress multisite and redirect to subpage
- wp-login.php redirect problem
- How to redirect 404s that generated for css&JS files?
- Custom, conditional redirect on logout
- login page not working [closed]
- Debugging a redirect loop affecting only certain pages
- WordPress redirect to splash page once a day for the first week
- noheader on the user/frontend side
- WordPress redirect from one directory to another but exclude wp-admin and wp-login.php
- How can I redirect foreigners by IP to other URL in WordPress?
- how to get my WP site’s IP? [closed]
- Simple function not working on frontend and can’t figure a way to debug it
- When invalid child page entered, WP redirects to next available page instead of giving Page Not Found
- Redirect non-logged in users to a specific page
- Forward and mask implementation not working,
- Redirect from subdirectory to WordPress plain permalink
- Show 404 when someone visits a non-existant Multisite site
- Top-level staging-site URL redirects to a different site
- Problem after redirect homepage to /en/
- Site1 wordpress website redirect to other site2 in my same server