Forum Discussion
kpdillon_107210
Nimbostratus
Jun 13, 2008irule with date check possible?
Hi, just started using some basic irules. I was wondering if it's possible to write an irule that says perform a redirect if date is < than say 7/4/2008... Anything like that possible?
1 Reply
- Sure it's possible. By using the TCL clock command it's rather simple:
when HTTP_REQUEST { if { [clock seconds] < [clock scan {2008-07-04}] } { HTTP::redirect "http://someothersite" } }
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=70
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