Forum Discussion
Jason_Morse_413
Nimbostratus
Jun 12, 2012URI 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
- Nathan_Houck_65
Nimbostratus
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"
}
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