compat: /index.php?productid= legacy URL form redirects to /t/{code} (covers old printed QR URLs)
This commit is contained in:
@@ -66,6 +66,7 @@ func main() {
|
||||
mux := http.NewServeMux()
|
||||
mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
|
||||
mux.HandleFunc("GET /{$}", app.Home)
|
||||
mux.HandleFunc("GET /index.php", app.Home) // legacy old-site URL form (?x=5&productid=…)
|
||||
mux.HandleFunc("GET /about", app.About)
|
||||
mux.HandleFunc("GET /what-is-this", app.WhatIsThis)
|
||||
mux.HandleFunc("GET /contact", app.Contact)
|
||||
|
||||
Reference in New Issue
Block a user