Knowledge Base Article

How to make a rewrite rule time-dependent?

You can easily make a rewrite rule time-dependent. To do this, you should add the following line before the rewrite rule you wish to make time-dependent:

 

RewriteCond %{TIME_HOUR} ^09

 

This way the rewrite rule following the condition will be executed after 9AM.

 

If you wish to use minutes in the condition, you should add:

  

RewriteCond %{TIME_HOUR}%{TIME_MIN} ^0923


This way the rewrite rule following the condition will be executed after 9:23AM.

 



Rating

Please indicate if this article was helpful for you.

rating :  5.0 from 5
views :  36
votes :  1

Valid XHTML 1.0 Strict Valid CSS!