LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Rewrite engine (https://www.linuxquestions.org/questions/linux-newbie-8/rewrite-engine-713140/)

bcrossb 03-20-2009 10:49 AM

Rewrite engine
 
Hi,
i got the following script from the apache web site. I am attempting to set some time based rules for access to my server.
here is the code:#RewriteEngine on
#RewriteCond %{TIME_HOUR}%{TIME_MIN} >2300
#RewriteCond %{TIME_HOUR}%{TIME_MIN} <0900
#RewriteRule ^day\.php$ day.day.php
#RewriteRule ^night\.php$ night.night.php

RewriteEngine on
RewriteCond %{TIME_HOUR}%{TIME_MIN} >2300
RewriteCond %{TIME_HOUR}%{TIME_MIN} <0900
RewriteRule ^foo\.html$ foo.day.html
RewriteRule ^foo\.html$ foo.night.html

I changed the names of the html files to ones that i created with embedded messages.
For some reason, not working. I checked my http.conf to make sure that the rewrite engine module is turned on , it is.
any suggestions please?
tnx, bob

jiml8 03-20-2009 11:01 AM

Any messages in the logs?

bcrossb 03-20-2009 12:43 PM

rewrite engine
 
hi,
no messages in the logs. just no response. server still preforms as usual.


All times are GMT -5. The time now is 04:22 PM.