Featured templates

WordPress. How to redirect your 404 page to the home page

Kate Daniels June 16, 2015
Rating: 5.0. From 2 votes.
Please wait...

This tutorial will show you how to redirect your 404 page to home page in WordPress.

WordPress. How to redirect your 404 page to the home page

  1. Log into your hosting account and navigate to File manager:


  2. Open wp-content/themes/themeXXXXX folder where XXXXX is your actual theme number:


  3. You should create a new file in this folder. Click "New file" button:


  4. Name your new file as 404.php:


  5. Open your newly created file using Editor and add this code there:

    			header("HTTP/1.1 301 Moved Permanently");
    			header("Location: ".get_bloginfo('url'));
  6. Click "Save changes" button:


  7. Refresh your website, 404 page is successfully redirected to your Home page now.

Feel free to check the detailed video tutorial below:

WordPress. How to redirect your 404 page to the home page

Professional Wordpress Templates
This entry was posted in WordPress Tutorials and tagged 404, error, home, page, redirect, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Live Chat
We help you to choose the right product.