Categories

Featured templates

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

Kate Daniels June 16, 2015
Rating: 5.0/5. 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:

    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

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