Forum Discussion
Need irule for redirect
I need a irule to do redirect for the following. Can this be done with one irule and what will that irule be?
http://connected.mcgraw-hill.com -> http://connected.mheducation.com
http://connected.mcgraw-hill.com/ -> http://connected.mheducation.com/
http://connected.mcgraw-hill.com/connected/ -> http://connected.mheducation.com/connected/
http://connected.mcgraw-hill.com/connected/login.do -> http://connected.mheducation.com/connected/login.do
http://connected.mcgraw-hill.com/se...1J78QNRFL8 -> http://connected.mheducation.com/se...1J78QNRFL8
http://connected.mcgraw-hill.com/se...LVY3KR7N9Q -> http://connected.mheducation.com/se...LVY3KR7N9Q
http://connected.mcgraw-hill.com/se...ateCode=VT -> http://connected.mheducation.com/se...ateCode=VT
1 Reply
- Kevin_Stewart
Employee
Is it safe to say that the URI never changes? Just the host name? If so, then:when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "connected.mcgraw-hill.com" } { HTTP::redirect "http://connected.mheducation.com[HTTP::uri]" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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