This script analyzes incoming requests and depending on the host-header, sends a redirect. The script uses the redirect API in multiple ways to introduce the additional parameters which can be used while sending a redirect message.
Required Backend configuration
No special configuration is required
Events and API Used
Script source code
# Purpose: Check Host Header and based on that respond with redirect messages