installs and configures redirect