F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Jason_Morse_413's avatar
Jason_Morse_413
Icon for Nimbostratus rankNimbostratus
Jun 12, 2012

URI rewrite, pass along the original URL?

I have an iRule that rewrites the URI but I wish to take the original *URL* (not the URI) and add it as "X-Original-URL" to the request headers. Is there a way to access the requested URL?

1 Reply

  • Would something like this work?

     

     

     

    when HTTP_REQUEST {

     

    set the URL here

     

    set URL [HTTP::host]

     

    set custom header

     

    HTTP::header insert X-Original-URL "$URL"

     

    }