rule redirection in a certain timeframe

Topics: User Forum
Mar 12, 2010 at 11:29 AM

Hello,

 

I’d like to know if we can forward within a certain timeframe. I know that through .htaccess it is with the following code, but I’m not sure if IIRF is possible:

RewriteEngine on
      

RewriteCond   %{TIME_HOUR}%{TIME_MIN} >0700
       

RewriteCond   %{TIME_HOUR}%{TIME_MIN} <1900

 

Thanks in advance,

Coordinator
Mar 12, 2010 at 4:23 PM

No, there's nothing in IIRF that can use the time of day in a condition statement.

If you needed to do this, you could use a scheduled task, and copy a different IIRF.ini into the directory at 7am, and at 7pm.  IIRF will automatically read the new file and use those new rules.