Forum Discussion
shawno_84086
Nimbostratus
May 30, 2007Realtional URI rewrites
I am completely new to irules and I would like some validation, or perhaps a better way to do what I want.
I am deploying a new website that uses a completely new set of URIs. All of the previous...
shawno_84086
Nimbostratus
Jun 12, 2007This irule is missing a close bracket so I added it, and now my irule is:
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] starts_with $::redirect] } {
HTTP::respond 301 Location "http://www.mydomain.com/[findclass [string tolower [HTTP::uri]] $::redirect]"
}
}This was really just a guess at where the close bracket should go, and I'm not sure why there were the 2 trailing quotation marks, but I tried with and without them, to no avail.
The irule loaded OK in the gui, and I have added it as a resource to my virtual server, but it does not seem to be doing anything. Examination of http traffic does not show a redirect taking place.
I contacted support and they said they are unable to help me and that devcentral is the correct resource.
Thank you for your help.
Shawn
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