rule redirection in a certain timeframe

Topics: User Forum
Mar 12, 2010 at 12:29 PM



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,

Mar 12, 2010 at 5: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.