Added support for redirects.
Improve redirect syntax to omit port.