Forum Discussion
newmedia_129255
Nimbostratus
Jul 18, 2013Help with irules redirect
Thanks in advance. The first irule works but the last one with the / appears not to be working and I was told that I need a uri. Can you please examine and let me know if the most effiecient way of d...
newmedia_129255
Nimbostratus
Jul 18, 2013Hi Brian, what I"m looking for is when the users types mywebsite.website.com/public I want to do a 302 redirect to http://mywebsite.website4.com/public and when they type & mywebsite.website.com/public2 I want to do a 302 redirect to http://mywebsite.website4.com/public2. Will this syntax work:
"*mywebsite.website.com*" {
if { ([string tolower [HTTP::uri]] contains "public") } {
HTTP::respond 302 Location "http://mywebsite.website4.com/public" }
elseif { ([string tolower [HTTP::uri]] contains "public2") } {
HTTP::respond 302 Location "http://mywebsite.website4.com/pubilc2" } }
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