minor enhancement on 301 redirect