If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

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

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:

    WordPress_How_to_redirect_your_404_page_to_the_home_page

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

    WordPress_How_to_redirect_your_404_page_to_the_home_page_1

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

    WordPress_How_to_redirect_your_404_page_to_the_home_page_2

  4. Name your new file as 404.php:

    WordPress_How_to_redirect_your_404_page_to_the_home_page_3

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

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

    WordPress_How_to_redirect_your_404_page_to_the_home_page_4

  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