Forum Discussion
Assistance with Custom iRule for URI
Devlopers are looking for this requested behavior:
When incoming requests originate as "uat.testsite.com/unsubscribe.php", this should be redirected/changed to "uat.testsite.com/testsite/unsubs/unsubscribe.php" – all URI parameters needed
When incoming requests originate as "process.uat.testsite.com" this should be redirected/changed to "uat.testsite.com/testsite/signups/process/legacy" – all URI parameters needed
Are session variables within the URL considered part of the URI or is that another component?
Thanks,
Doug
1 Reply
- Vijay_E
Cirrus
when HTTP_REQUEST { if { [HTTP::host] eq "process.uat.testsite.com" } { HTTP::respond 301 Location "http://uat.testsite.com/testsite/signups/process/legacy" } elseif { ([HTTP::host] eq "uat.testsite.com") and ([string tolower [HTTP::uri]] eq "/unsubscribe.php") } { HTTP::respond 301 Location "http://uat.testsite.com/testsite/unsubs/unsubscribe.php" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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