summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <sokolyuk@gmail.com>2024-01-07 21:06:47 +0100
committerDimitri Sokolyuk <sokolyuk@gmail.com>2024-01-07 21:06:47 +0100
commitd4b630af52b349070e36b484537969fa1d448716 (patch)
treeb9167e41a7593f15fbf9b3d0e4226e8d30953cc5
parentc6158cce9470af1e8846ef68e62ff060d586634d (diff)
Remove all old rewrites
-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",
-}