Forum Discussion
Snl
Cirrostratus
Oct 30, 2016Irule Issue - url rewrite and redirect
I am trying to archive below but its not working original request - https://abc.com/db/ap-webconsole before reach server it should go as https://abc.com:3333/ap-webconsole response should go as h...
Stanislas_Piro2
Cumulonimbus
Oct 31, 2016Hi,
try this irule:
when HTTP_REQUEST {
switch -glob -- [HTTP::path] {
"/db/ap-webconsole*" {
HTTP::respond 301 noserver Location [string map {/db/ap-webconsole /ap-webconsole} [HTTP::uri]]
}
"/ap-webconsole*" {
HTTP::header replace Host "[HTTP::host]:3333"
}
default {
HTTP::respond 302 noserver Location "/ap-webconsole/"
}
}
}
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