Skip to content

Instantly share code, notes, and snippets.

@kevinpet
Created April 19, 2009 08:24
Show Gist options
  • Save kevinpet/97973 to your computer and use it in GitHub Desktop.
Save kevinpet/97973 to your computer and use it in GitHub Desktop.
<?php
# Nucleus legacy incoming links redirect script
# see blog post at http://kdpeterson.net/blog/ for explanation
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://$host$uri/atom.xml");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment