Forum Discussion
Richard_Milner-
May 08, 2012Nimbostratus
mod_rewrite to iRule conversion question from a newcomer
Hi Folks,
I'm fairly new to the BIGIP devices, though I've used competitors products before so I'm not starting from scratch. I have a mod_rewrite rule that I'm trying to migrate f...
Richard_Milner-
May 09, 2012Nimbostratus
This is all working great now, the final rule is:
when HTTP_REQUEST {
if { !([HTTP::uri] equals "/") and !([HTTP::uri] contains ".") and !([HTTP::uri] starts_with "/server-status") } {
set redirect_uri [string range [HTTP::uri] 1 end]
HTTP::respond 301 Location "/redirect.jsp?code=$redirect_uri"
}
}
Many thanks for the assistance folks.
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