fixed regex to allow redirection