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&PubId=12677&PersonId=109
redirect to:
https://redirectsite.com/publicationid/12677
What do you think?
Thanks!!
- Stanislas_Piro2
Cumulonimbus
Hi,
The
command returns /publications/citation.aspx?type=FN&PubId=12677&PersonId=109[HTTP::uri]
If you execute
, it will return the PubId parameter value from[URI::query [HTTP::uri] PubId]
[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 } }
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