Permalink
Browse files

redir script for handling ngingx rewrites

  • Loading branch information...
jkk committed Jan 26, 2013
1 parent 5a5fac3 commit 39ab196c5f8030392e93729d68bd6c8f3cbdad68
Showing with 18 additions and 0 deletions.
  1. +18 −0 redir.php
View
@@ -0,0 +1,18 @@
<?php
if ($_GET['path'] == "kjd") {
header("Location: /#kjd");
} elseif ($_GET['path'] == "search") {
header("Location: /#search");
} elseif ($_GET['path'] == "gnugo") {
header("Location: /#gnugo");
} elseif ($_GET['path'] == "blank") {
header("Location: /#blank");
} elseif (file_exists("sgf/saved/" . $_GET['path'] . ".sgf")) {
header("Location: /#" . $_GET['path']);
} else {
header("HTTP/1.0 404 Not Found");
echo "Not Found";
}
?>

0 comments on commit 39ab196

Please sign in to comment.