Forum Discussion
F5Hopper_28651
Nimbostratus
Jul 25, 2016wildcard URL redirection with wildcard as part of URL
Not sure how to do this, its a PURL project. Original PURL: firstname-lastname.www.somesite.com Re-direct address: www.somesite.com/personal-landing/index.asp?cust=firstname-lastname no i...
Vijay_E
Cirrus
Jul 26, 2016Untested but try something using getfield:
when HTTP_REQUEST {
set HOST [string tolower [HTTP::host]]
set USER [getfield $HOST "." 1]
set SITE [getfield $HOST "." 2]
HTTP::redirect "http://$SITE/personal-landing/index.asp?cust=$USER"
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects