Made redirects with regex matching work.