Knowledge Base

How to redirect 404 errors to my WordPress home page index.php?

Create a new file named 404.php and enter the following code:


   header("Status: 301 Moved Permanently");
Replace www.xxxxxx.tld with your domain name and upload the 404.php file to your current WordPress themes folder located in: /wp-content/themes/
Please rate this article to help us improve our Knowledge Base.

0 0