Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-20-2009, 11:49 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
Rewrite engine

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$
#RewriteRule ^night\.php$ night.night.php

RewriteEngine on
RewriteCond %{TIME_HOUR}%{TIME_MIN} >2300
RewriteCond %{TIME_HOUR}%{TIME_MIN} <0900
RewriteRule ^foo\.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
Old 03-20-2009, 12:01 PM   #2
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Any messages in the logs?
Old 03-20-2009, 01:43 PM   #3
LQ Newbie
Registered: Feb 2009
Posts: 4

Original Poster
Rep: Reputation: 0
rewrite engine

no messages in the logs. just no response. server still preforms as usual.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rewrite engine for apache wanna13e Linux - Software 2 09-11-2007 09:08 PM
Why don't LQ rewrite urls to enhance search engine rankings? chr15t0 LQ Suggestions & Feedback 7 04-26-2006 06:49 AM
besides xine engine, what else engine can be used in kaffeine? bravehao Linux - Newbie 1 06-04-2005 08:34 AM
how can i rewrite csstudy Linux - General 1 03-30-2005 02:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration