Forum Discussion
Rasool1224
Nimbostratus
Mar 20, 2018change http header
Hi
I have one http server and created a Virtual server with the help of iApp,
application is working fine with https.
but i would like to change the url, please advice
present url - https://A...
Snl
Cirrostratus
Mar 20, 2018Try below irule , you should hve http profile enabled under VS
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "a.myapp.com" } {
HTTP::respond 301 Location "https://b.myapp.com[HTTP::uri]"
}
}
or
when HTTP_REQUEST {
if { [HTTP::host] equals "A.myapp.com"} {
HTTP::redirect "https://B.myapp.com"
}
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
