Forum Discussion
kevin_50596
Nimbostratus
Aug 15, 2008Schedule Based Redirect
Is it possible to create an HTTP redirect based on what time it is? Dirty Example:
when HTTP_REQUEST {
if {[thetime] == "8AM-9AM"} {
HTTP::redirect "http://redirectsite.org"
}
}
Now obviously this won't work, but I'm just trying to give you an idea of what I'm trying to do.
Any help would be appreciated!
Thanks,
Kevin
4 Replies
- James_Quinby_46Historic F5 AccountI could have sworn I saw something here recently that made decisions based on day of the week, but I haven't had any luck turning it up, and I can't remember what command(s) were used. I'll keep digging or maybe someone else knows saw it.
- James_Quinby_46Historic F5 AccountHa! Found it here:
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=25992&view=topic
Original request was for enabling/disabling compression during different time periods. Have a look - I bet it gets you pretty close. - The_Bhattman
Nimbostratus
Here is another part of the detail that might give you better idea of how to do this. Take a look at the example.
http://www.tcl.tk/man/tcl8.5/tutorial/Tcl41.html
Hope this helps
CB - kevin_50596
Nimbostratus
Thanks for the reply, I'll test everything out and let you know how it goes!
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