Forum Discussion
Shawn_Conway
Cirrus
Jun 11, 2018Dynamic content redirect
We are trying to rewrite using id number which will change and would like to append it redirect site below. in this case it is "12677"
https://localsite.com/publications/citation.aspx?type=FN&Pu...
Stanislas_Piro2
Cumulonimbus
Jun 12, 2018Hi,
The
[HTTP::uri] command returns /publications/citation.aspx?type=FN&PubId=12677&PersonId=109
If you execute
[URI::query [HTTP::uri] PubId], it will return the PubId parameter value from [HTTP::uri]
When HTTP_REQUEST {
set PubId [URI::query [HTTP::uri] PubId]
if {[HTTP:path] equals "/publications/citation.aspx" && $PubId ne ""} {
HTTP::redirect https://redirectsite.com/publicationid/$PubId
}
}
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
