Skip to content

Instantly share code, notes, and snippets.

@mrfoxtalbot
Last active August 25, 2021 19:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrfoxtalbot/858b369f2602276a5535799e60ce8b51 to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/858b369f2602276a5535799e60ce8b51 to your computer and use it in GitHub Desktop.
Disable Author Pages WordPress
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: /");
?>
// Create a author.php file in your theme and add the above code
// Date Archives can be disabled with this same method but creating a date.php file
// Source: http://blog.futtta.be/2015/03/03/quick-tip-disabling-wordpress-author-pages/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment