Forum Discussion
Fasih_Ahmed_135
Nimbostratus
Nov 08, 2013Redirect and append URI
I'm redirecting URLs using HTTP profile, but I need to append the text value after '/'. For example, when the end user type 'www.mmicagent.com/fasih', it should redirect and append to 'www.motoristsm...
Kevin_Stewart
Employee
Nov 08, 2013Please try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.mmicagent.com" } {
HTTP::redirect "http://www.motoristsmutual.com/map/ouragents/mmicagent[HTTP::uri]"
}
}
This will append whatever URI the client specifies to the end of the redirect URL.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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