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?
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Override default url for author pages?
- Multiple endpoints to same page
- 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 add prefix to post url structor only
- Why does wordpress still strip my query var?
- Hijacking the URL for filtering
- 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
- 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?
- Change default URL of image attachment
- Prevent WordPress from automatically correcting URLs
- Display content according to current URL
- Change WordPress comments url / word
- Using a custom field value to redirect away from a 404 page
- Rewrite WordPress Custom URL
- WordPress removes spaces in URL on pagination
- How to check current URL for endpoint in a template file?
- add_rewrite_rule not working for language specific characters
- Custom rewrite rule
- Home page with Polylang redirects to other page [closed]
- Define orderby in url
- WordPress .htaccess – route other URLs to another app
- open all .docs in word online
- How to add custom variable in url without redirect?
- Adding pretty query parameters
- Changing RSS feed URL structure
- How to change the main site url on a multisite installation (network)?
- Append a query string to the end of every URL
- How to building pretty URLs to reflect category hierarchy?
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- Help with Rewrite Rule for Custom Post Type with Query String
- How to remove trailing slash from root WordPress folder?
- Add language prefix to permalinks
- Rewrites: .htaccess or wp_rewrite for bulk 301 changes?
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- Per Page Permalink Structure for Page Post Type
- ngnix Url rewrite doesn’t work
- Understanding the query string after .htaccess rewrite
- Rewrite vs Redirect from ?p={ID}
- URL renaming issue
- store URL global before we redirect
- Removing “www” from a site URL
- Re-directing URLs with dates to URLs without dates
- wordpress url correction
- How to redirect Webp files?
- How to fix automatic redirects?
- 301 Rewriting htaccess
- How are rewrite rules applied in WordPress?
- How do I get posts to appear at mydomain.com/blog?
- get variable from url?
- Redirect to new domain that serves new and different content
- WordPress rewrite front page url
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- Redirect users with “.” (dot) in their username and replace with “-” (dash) to correct profile
- How to change search page url so that it still returns a page when there’s no search query specified?
- SEF add_rewrite_rule & add_rewrite_tag not working
- Problem building an url with argument
- Multiple permalink with and without category for same post
- How do I rewrite URL that has custom parameter
- Param causing 404
- using wp_rewrite but keep the original url in the address bar
- Broken page redirect
- Get custom posts by segment of the URL
- Make URL like /fr/something display same as /something
- URL rewrite before template_redirect called
- Remove trailing slash
- Remove Page Slug from URL
- How to retrive previous Domain URL in Wp
- Redirect A URL Pattern In WordPress Using .htaccess
- URL Rewrite for CPT single posts
- Migration from old CMS to WordPress 301 redirection rules?
- Can I exclude a single URL from a rewrite plugin?
- How can i maintain permalink structure and avoid a 404 error when loading external content?
- Remove url parameter using wordpress
- Spurious URL structure (Adding extra /0/s)
- How to make custom WordPress page deliver search results
- Using .htaccess to redirect /da/ to / in URL
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?