Saturday, November 17, 2018

Elegant Themes DIVI – Custom 404 Page

I had a customer complain about not being able to reach the new site we just finished. They were getting a 404 page not found page. This is because Google has the old pages indexed.

First I added the website to Google Analytics and Webmaster Tools so I could get the ball rolling on getting the old URL’s removed from their index.

Second, I got working on creating a custom 404 page. The following article helped me understand how to do this in DIVI.

Build a custom 404 / page not found template

It took about 30 minutes start to finish to get this working.

I hope this helps someone else out there…

 

Create A Custom 404 Page In Joomla

When a site gets moved the old indexed URLs lead to users linking to your site through their search may link to a page that no longer exists. Using Google’s Webmaster Tools you can eliminate old URLs, but in the mean time you can pretty quickly create your own 404 page not found error page. The article below is a great resource.

https://docs.joomla.org/Creating_a_Custom_404_Error_Page

The basics are:

  • Create an uncategorized article that is the 404 page. Dress it up any way you like.
  • Create a menu link to the 404 page and set it to be unpublished. Copy the URL of this page to be used later.
  • Copy the “error.php” file from the “Templates/system” directory and paste it in the root of the template your are using.
  • Edit this file and delete out everything after the “or DIE” statement.
  • Add the PHP redirect code in the article.

I hope this helps someone else out there…