This question is a duplicate of Disable ONLY URL auto complete, not the whole canonical URL system
Try this filter
function remove_redirect_guess_404_permalink( $redirect_url ) {
if ( is_404() )
return false;
return $redirect_url;
}
add_filter( 'redirect_canonical', 'remove_redirect_guess_404_permalink' );
Or this plugin: https://wordpress.org/plugins/disable-url-autocorrect-guessing/
Related Posts:
- Will references to ugly links automatically redirect to their pretty url permalink?
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Alias ‘wp-content’ directory to something shorter (framework?)
- Is there a ‘rake routes’ for wordpress?
- add_rewrite_rule fro html to another url not working
- How to disable URL rewriting for specific URLs?
- Can I change default registration link (without htaccess)?
- How do I display only the parent page in the url
- Wildcard forward all posts and pages with few exceptions
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- How to redirect large amount of URLs?
- How do I Redirect a WordPress Page?
- Is WordPress API visible from PHP file called in htaccess
- Use Parent Pages for URL Structure without Landing Page
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- How to create short urls for sharing and downloadable content?
- How to redirect URL to a subdomain except one folder that needs to go somewhere else
- Use a template file for a specific url without creating a page
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Override default url for author pages?
- Using custom/dynamic “slug” for a page
- Multiple endpoints to same page
- add_rewrite_rule: $matches var not replaced by captured value
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Custom permalinks with NextGEN Gallery
- Clash of the rewrites
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- Add forward slash on categories url (serve one version of a url)
- How to change default page slug?
- How do I add a add_rewrite_rule without it redirecting?
- How to create a specific frontend URL (not a Page) from a theme or plugin?
- how to add prefix to post url structor only
- Why does wordpress still strip my query var?
- Appending numbers to url do not break the link
- Hijacking the URL for filtering
- Sub domain redirection to taxonomy
- custom htaccess rewrite rule for page
- Login to wp-admin “redirect_to” points to wrong URL after migration
- Stop unwanted WP redirection to new url
- Passing & Reading URL Parameters with URL re-writing
- Tricky URL rewrite with custom values in url
- How to change page URLs to “www.site.com/page” instead of “example.com/blog/page” but keep post URLs as “example.com/blog/post”?
- wp_sanitize_redirect strips out @ signs (even from parameters) — why?
- Add_query_arg + two times the same argument?
- Redirecting all old links from previous EE site to new WP site in one go?
- WordPress 404 unless there is a space in url
- Change default URL of image attachment
- Prevent WordPress from automatically correcting URLs
- Taking a value from PHP_URL_PATH won’t work after WordPress 5.5 update
- Display content according to current URL
- redirect 301 old url to new url
- Change WordPress comments url / word
- Using a custom field value to redirect away from a 404 page
- Add a query string to ALL links on site
- Add rewrite rule for rewrite endpoint
- Migrating a page to be an article
- Rewrite WordPress Custom URL
- Allow single quote in URLs
- WordPress removes spaces in URL on pagination
- How to get “extended” path info from URL in a plugin
- How to check current URL for endpoint in a template file?
- How to perform a query at the URL?
- add_rewrite_rule not working for language specific characters
- Custom rewrite rule
- Home page with Polylang redirects to other page [closed]
- Custom URL rewrite to specific page template
- Is there a way to create alias without using htacess, permalinks or delving into code?
- expecting 404 but redirecting to post with url subdirectory in post title
- Define orderby in url
- WordPress .htaccess – route other URLs to another app
- Remove Query String from URL on Redirect – Redirection Plugin
- open all .docs in word online
- Why does wp_redirect strip out %0A (url encoded new line character) and how do I make it stop?
- How to add custom variable in url without redirect?
- Adding pretty query parameters
- Changing RSS feed URL structure
- Creating a dynamic URL structure
- How to change the main site url on a multisite installation (network)?
- Append a query string to the end of every URL
- Double domain name in category URL-s
- NextGEN Gallery Lightbox – Social Share URL Redirect
- Preserve Domain Alias
- My WP_options db rewrite_rules Does Not Work
- Rewrite Preview URL to include index.php
- How to rewrite url wordpress?
- How to building pretty URLs to reflect category hierarchy?
- Adding special characters to slug?
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- Rewrite custom post type URL parameters
- How to remove wordpress directory slash
- Help with Rewrite Rule for Custom Post Type with Query String
- Translate custom post type and taxonomy slug in URL?
- A clean custom rewrite rule for weekly archives
- Right url for custom post type
- Preserve old website URL structure after migrating to WordPress
- I want to add a new tag to WordPress URL permastruct
- Change pagination url format
- How to remove trailing slash from root WordPress folder?