A 404 should never be a redirect. A redirection status begins with 3
, not with 4
.
You can either include the index.php
(or home.php
or front-page.php
) in your 404.php
or just remove the 404.php
from your theme. Then WordPress will use the index.php
.
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
- 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
- PHP header(Location: …): Force URL change in address bar
- WordPress localhost site redirect to live site
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- wp_redirect() function is not working
- My wordpress multisite homepage redirects to signup page
- Prevent access to single post types
- 301 redirect not working through .htaccess
- handling login/logout redirects
- 302 redirect instead of 301 after switch to HTTPS
- Redirecting to home-page when saving any edited code
- Temporary redirect prevents getting $_POST array
- Can WordPress redirect to a “similar page” in case of 404 error
- Hacked website redirect, only on desktop, help with restoring it [closed]
- Can I check for maintenance mode before redirecting to subdomain?
- How to target specific user role?
- How to auto login after registration? [duplicate]
- htaccess 301 Redirect not working for WordPress site
- WordPress does not load page.php, return 404.php
- Auto-detect the redirect url from the original url
- Redirect all users to dashboard unless custom post type
- Redirecting connection from IP to localhost
- How to redirect 40,000 urls with the same url structure efficiently?
- Use two different index pages
- How to redirect from one WP site to another
- Extra Text in URL
- WP_List_table with form of method=GET redirects to wrong url after submit
- Redirect wordpress website’s subpage to root [closed]
- Can’t do 301 Redirect, Why?
- 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
- 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?
- ERR_TOO_MANY_REDIRECTS when switching from good database to old database
- domain redirects to subdomain
- 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
- 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
- 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?
- WordPress site redirecting to developers URL
- How to use the HTTP API (wp_remote_get) instead of cURL?
- How to Create Custom Route to a page in WordPress
- How to create a redirect to another domain like safe redirect manager from php
- Post Migration Site Migration Redirects All Known Solutions Attempted