Forum Discussion
Hien_Truong
Cirrus
Sep 11, 2020irule redirect to different uri
Hi, i need help to redirect: https://www.abc.com/App/Topics/Topic.aspx?TopicId=* redirect to https://abc.com/redirect-legacy/abc-topics/Topic.aspx?TopicID=* the below are two examples: https://w...
Sep 11, 2020
Hi Hien Truong,
Does redirected uri's hostname contains "www"?
Can you try this?
when HTTP_REQUEST {
if { [HTTP::host] equals "www.abc.com" and [string tolower [HTTP::path]] equals "/app/topics/topic.aspx"} {
HTTP::respond 301 noserver Location "https://www.abc.com/redirect-tolegacy/abc-topics/Topic.aspx?[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