I've got for example this url:
http://example.com/team
and I want during this specific time for example: 00:00 to 00:05 (for 5 minutes) to restrict access to it and instead when trying to load /team
to be redirected to /home
BTW: I am using codeigniter framework
.
This is my current htaccess file
:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]
I tried with ...
....
RewriteCond %{TIME_HOUR}%{TIME_MIN} >0000
RewriteCond %{TIME_HOUR}%{TIME_MIN} <0005
....
but no luck. Probably I am doing it wrong but I don't get it how it should redirect /teams
and such urls?