Forum Discussion
Amit585731
Nimbostratus
Mar 14, 2015Can we redirect long url to diff short url
Hi,
I have a problem where we are redirecting all the traffic coming to abc.com (this is single sign on server) should be directed to xyz.com.. is it possible to redirect traffic coming on to xyz.com? or this is something done at server level?
Thanks
1 Reply
- Michael_Jenkins
Cirrostratus
You can do redirects through iRules or Local Traffic Policies.
You can check host name and uri and then redirect if it matches your condition... Something like
when HTTP_REQUEST { if {[string tolower [HTTP::host]] equals "abc.com" && [string tolower [HTTP::uri]] equals "/pkmslogin.html?xyz.com"} { HTTP::redirect "https://xyz.com" return If you wanted to use the param after the "?", you could do this instead: HTTP::redirect "https://[HTTP::query]" } }
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