Forum Discussion
DM_5174
May 23, 2011Nimbostratus
merging two irules into one efficient one.
Hi All,
I was wondering if there is a way to merge two irules into one effcient one. The first irule checks the host
and if a user is coming in as www.mysite.com, it will rewrite the host head...
DM_5174
May 23, 2011Nimbostratus
Hi Aaron,
These are the actions required.
1- rewrite host header from www.mysite.com to www.mynewsite.com
2- redirect to a new URI based on the datagroup lookup
and if neither action 1 or 2 does not match, than default is action 3
3- redirect to https:// with the same host and URI the client requested
I have tried your suggestion and for some reason i sometime get the correct redirect, but some of the
datagroup string parameter does not work. I know I am using the correct syntax with I put this in the URL.
for example http://www.mysite.com/abc/app4 does not go to http://www.mysite.com/123/app400 as per the matching in the
data group and so on...
I have put back the "/$newURI" and it all works correctly, the only issue is the double slasshes as below.
Thanks Aaron!
-DM
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