Set the WordPress index.php as error handler in your .htaccess (if you are using Apache):
ErrorDocument 404 /wp/index.php
Make sure the path matches the path to the WordPress directory.
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
- 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?
- 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/
- 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?
- Stopping media file redirects
- Forcing header cache control in 404 pages
- redirect to 404 page
- Redirect certain 404 pages to parent page
- Redirect of specific words in URL ahead of website migration
- Stop WordPress from “guessing” redirects for nonexistent URLs
- How to create a php url redirection for nicer links
- WP redirects all pages from new domain to old domain
- wp_logout_url() redirects to confirmation page even with nonce?
- Creating intro page in wordpress
- How to redirect action=register link on the lostpassword page to a different link?
- You do not have sufficient permissions to access this page
- All pages showing up as homepage on WordPress website
- Redirect blogpage /blog/abcd/ to /blog/
- template_redirect causing infinite loop when get_queried_object is called
- WordPress Redirecting HTTPS Requests to HTTP
- How can I redirect my website’s homepage to a random blog post?
- wp_redirect does not work
- htaccess rules not applied?
- Load time cost of using a redirect plugin v direct .htaccess entry
- Intercept the “lost password” action by first redirecting to an existing instructions page
- How to pass email values from one php page to another
- How to include error message on login
- WooCommerce unexpected behavior [closed]
- Force WordPress to load from site’s hostname
- Redirect custom post type from one domain to another domain
- How can I force the user to log in, even if they’re already authenticated?
- How to pass a message using template_redirect
- Disable WordPress URL auto complete
- Prevent users from going to wordpress profile after login
- Resolve 404 on posts without category
- Keep subcategory grandson in slug
- Force WordPress https redirect before www redirect based on site address url
- Prevent wordpress autoredirect
- Custom form redirect after login
- Redirect Attachment Page to Attachment
- Redirect away from page if user is not admin
- Conditional Redirect
- Redirection with a wildcard
- How can I stop redirecting from a search to a taxonomy archive page
- How to return a 410 code for previously published posts now set to draft?
- Debugging issue with redirection in WordPress
- The / location 301-redirects to itself in a loop
- Redirect user from backend to frontend
- Internal Redirections?
- Need to redirect from Apache2 Ubuntu Default Page to home page in wordpress
- multisite 404 subfolder same name slug as site
- Redirect empty search to another page
- Make a treatment before the action of the form
- Using cache brokes redirecting
- Is it possible to take a new visitor to the site to a disclaimer page and then return them to their previous page?
- Homepage (domain) that redirects user toward two subdomains based on his/her preferred language
- redirect to another page if user has registered successfully
- Too many redirects error when change of base url
- WordPress redirect users from certain countries to subpage of language version
- Unable to access WP test site
- Force SSL on a single page which is used as iFrame
- Redirect from subdomain
- Show page without reference to post (like front-page)
- How to redirect all pages of a blog to a new blog
- How to handle expired assets/content when user has direct URL
- Best SEO way to redirect from all “posts” to home url
- Where to add wp_redirect on frontend pages?
- Does WordPress automatically redirect to the URL specified in settings?
- My Pages Have Been Redirected Automatically in WordPress. How to Stop It?