Got 404 (Not Found) Error? Try adding Redirect 301 (Moved Permanently) in .htaccess file – How to Fix Tips?

Crunchify 404 Error

Everybody in this world who uses internet must have faced 404 - Page Not Found error at any given time. HTTP error code 404 is the most common error code in WordPress. Being very powerful CMS with only minor changes to your WordPress setup may result into lots of 404 errors. In this tutorial we will go over steps on how to find and solve 404 errors using .htaccess file.

What is HTTP 404 Error Code?

HTTP 404 means – your client request is able to connect to the server but the content you are requesting doesn’t exist.

How to find?

Best way to find 404 error for your WordPress blog is to use Google Webmaster tools.

  • Go to your blog
  • Click Crawl
  • Click Crawl Errors
  • Find the list of URLs with 404 errors

How to find 404 Error - Google Webmaster Tools

How to fix?

Open your blog’s .htaccess file and add 301 Moved Permanently to it. 301 means current links or records using the URL that the response is received for should be updated. Google recommends using a 301 redirect to change the URL of a page as it is shown in search engine results.

Format:

Redirect 301 "Old dead link" "New working link"

HTTP 301 Redirection in htaccess file - Fix WordPress 404 Error

Suddenly if you see so many 404 errors on you blog then it usually happens if your .htaccess file got deleted or something went wrong with the rewrite rules. Here is what you need to do is fix your permalinks settings.

Fix WordPress Permalink setting - Crunchify Tips

If you have above similar setting then your .htaccess content should look like below:

We hope this tips will help you fix HTTP 404 errors. Did this work? Or Do you have another tips which you would like to share?

Have anything to add to this article? Please chime in and join the conversion.