fixed regex for redirects