From ee3547e0b01d940f9d5839fa7abf2043bddf88cc Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 30 May 2018 20:07:16 +0200 Subject: Try splitting redirects for threads/messages --- ag-web.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ag-web.rb b/ag-web.rb index 5ef3522..a37c2ec 100644 --- a/ag-web.rb +++ b/ag-web.rb @@ -101,7 +101,11 @@ get '/:list/' do end end -get '/:list/(threads|messages)/?' do +get '/:list/threads/?' do + redirect '/%s/' % [params[:list]], 301 +end + +get '/:list/messages/?' do redirect '/%s/' % [params[:list]], 301 end -- cgit v1.2.3-65-gdbad