Forum Discussion
Hien_Truong
Cirrus
Thanks for your reply. The above irule is not working as expect since when we enter "TopicId=87" the output should be "TopicID=87". it mean when user type TopicId=* will ouput TopicID=*
For example:
https://www.abc.com/App/Topics/Topic.aspx?TopicId=87
should go to
https://www.abc.com/redirect-tolegacy/abc-topics/Topic.aspx?TopicID=87
or
https://www.abc.com/App/Topics/Topic.aspx?TopicId=1000
should go to
https://www.abc.com/redirect-tolegacy/abc-topics/Topic.aspx?TopicID=1000
Sep 11, 2020
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?TopicID=[URI::query [HTTP::uri] TopicId]"
}
}