Forum Discussion
wrightnz_34708
Jul 08, 2010Nimbostratus
ProxyPass
Hi - hope this is the right place to pose this question
Background:
We are using the ProxyPass irule v10.2 to setup URI shortcode/keyword redirects (rewrites?) e.g. www.123.com/checkthisout...
wrightnz_34708
Jul 11, 2010Nimbostratus
Thanks!
If I can't get ProxyPass to work this way and use HTTP:respond instead - how could I write an HTTP::respond for multiple redirects in the same irule
e.g. this is how I'd do one for a single redirect at the moment
-----------------------------
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] { "123.com"
{
HTTP::respond 301 Location "http://www.123.com[HTTP::uri]"
}
}
}
----------------------------
My proxypass DataGroupList external file /config/ProxyPass123 contains multiple redirects like
"www.123.com/land" := "www.123.com/Shows/land/tabid/26/Default.aspx",
"www.123.com/aw" := "www.123.com/Shows/Advanced/tabid/45/Default.aspx",
"www.123.com/attack" := "www.123.com/Shows/Attack/tabid/14/Default.aspx",
"www.123.com/plenty" := "www.123.com/Shows/Plenty/tabid/27/Default.aspx",
"www.123.com/blogs" := "www.123.com/Shows/Blogs/tabid/93/Default.aspx",
"www.123.com/OP" := "www.123.com/Shows/Plenty/tabid/57/Default.aspx",
"www.123.com/derbury" := "www.123.com/Shows/derbury/tabid/58/Default.aspx",
"www.123.com/Central" := "www.123.com/Shows/Central/tabid/29/Default.aspx",
"www.123.com/channel" := "www.123.com/Shows/tabid/397/Default.aspx",
"www.123.com/church" := "www.123.com/Shows/derbury/tabid/58/Default.aspx",
"www.123.com/events" := "www.123.com/Events/tabid/699/Default.aspx",
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