diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-05-30 20:07:16 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-05-30 20:07:16 +0200 |
commit | ee3547e0b01d940f9d5839fa7abf2043bddf88cc (patch) | |
tree | dada4e16351d47e718c6923f369b2469a850cf4c | |
parent | Try to use 301 (permanent) redirects for address rewrites (diff) | |
download | frontend-ee3547e0b01d940f9d5839fa7abf2043bddf88cc.tar.gz frontend-ee3547e0b01d940f9d5839fa7abf2043bddf88cc.tar.bz2 frontend-ee3547e0b01d940f9d5839fa7abf2043bddf88cc.zip |
Try splitting redirects for threads/messages
-rw-r--r-- | ag-web.rb | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |