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 :  4.7 from 5
views :  1325
votes :  3

Related Articles

Views

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!