1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

PHP: How To Redirect 404 Page To Homepage

  1. Clicks today:
  2. Clicks this month:
  3. Overall rating:

PHP » Content Management Systems — over 6 years ago
Redirection of 404 page to home page is necessary for search engine optimization and it also helps users to get homepage from error pages. In order to redirect error page to home page, a small snippet must be added to 404.php in your theme folder, if you don't find 404page then create 404.php and add the following snippet in it.


Your Comment

You must be logged in to post a comment.