Created
April 19, 2009 08:24
-
-
Save kevinpet/97973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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