Added reading and redirecting to targetURL
added custom redirection with targetURL parameter