Skip to content

Instantly share code, notes, and snippets.

@jerrickhakim
Created March 19, 2018 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerrickhakim/d2b3c27d37eba67ddc5c76878c3186ee to your computer and use it in GitHub Desktop.
Save jerrickhakim/d2b3c27d37eba67ddc5c76878c3186ee to your computer and use it in GitHub Desktop.
Setting 404 Page Redirects in Wordpress by Modifying the 404.php File.
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment