summaryrefslogtreecommitdiff
path: root/rewrite.go
diff options
context:
space:
mode:
Diffstat (limited to 'rewrite.go')
-rw-r--r--rewrite.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/rewrite.go b/rewrite.go
deleted file mode 100644
index ba23792..0000000
--- a/rewrite.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Register HTTP handlers that redirect old blog paths to their new locations.
-
-package main
-
-import "net/http"
-
-func init() {
- for src, dst := range urlMap {
- http.HandleFunc(src, func(w http.ResponseWriter, r *http.Request) {
- http.Redirect(w, r, dst, http.StatusPermanentRedirect)
- })
- }
-}
-
-var urlMap = map[string]string{
- "/whoami": "/Who-am-I",
- "/tek": "/teapot",
-}