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?
- Use a template file for a specific url without creating a page
- Override default url for author pages?
- Multiple endpoints to same page
- Custom permalinks with NextGEN Gallery
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- 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
- Passing & Reading URL Parameters with URL re-writing
- wp_sanitize_redirect strips out @ signs (even from parameters) — why?
- 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
- Allow single quote in URLs
- Custom URL rewrite to specific page template
- Why does wp_redirect strip out %0A (url encoded new line character) and how do I make it stop?
- Adding pretty query parameters
- 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
- Adding special characters to slug?
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- Translate custom post type and taxonomy slug in URL?
- Right url for custom post type
- Preserve old website URL structure after migrating to WordPress
- Change pagination url format
- Redirecting /px/?q=x to /px/x/
- URL redirect on updating the post date
- Changing URL scheme, mod_rewrite not helping
- How to redirect a link to a new link?
- Rewrite vs Redirect from ?p={ID}
- 301 Redirect all posts urls from .html to / (without .html)
- Re-directing URLs with dates to URLs without dates
- custom wordpress rewrite
- Flushing rewrite rules
- Two sets of url one content?
- 301 Rewriting htaccess
- 404 redirect based on url
- How to customize sub-URLs in a wordpress website (.htaccess)
- Rewriting a date hierarchy into a ‘yyyy-mm-dd’ slug
- Get logged in username in wordpress url
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation
- custom url – add attachment’s id or name after post
- WordPress 3.1.2 Network Enabled non-www to www
- Make the home page’s slug visible in the browser’s URL bar
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- dynamic URL rewrite
- Append a parametter at first or last to a certain URL
- Dynamic URL with rewrite rule not working
- Remove part from dynamic url and redirect
- How to Update / Change URL when Popup Modal Loads?
- Disable WordPress URL auto Redirect
- Passing a variable to hyperlink text?
- url redirect none www to www
- Rewrite URL to get rid of wp-content etc and change URL
- Root-relative paths being rewritten on ‘Edit Page’ [closed]
- How to remove Base URL Duplication?
- Any way to make Apache’s internal redirect work?
- Get parameters and custom page template
- Redirect based on $_GET parameters
- Pagination appearing twice in URL after rewrite
- URL rewrite before template_redirect called
- Direct Dynamic URL in root to a location within template
- URL Rewrite for CPT single posts
- URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
- Redirect if string found in URL
- WordPress post-type create url rewriting
- How can i maintain permalink structure and avoid a 404 error when loading external content?
- How to prevent URL-modification when page title contains digits only?
- How to exclude my home page from url of my internal pages?
- WordPress 3.0 Multisite – Child sites and backends appearing blank
- How do I display a friendly URL link in the frontend?
- Please give me the rewrite rules for my ugly urls
- Spurious URL structure (Adding extra /0/s)
- 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?
- openlitespeed rewrite rules conversion from apache
- Allow requests to resources outside the wordpress folder
- Switch WordPress to non-absolute links? [closed]