Time based rewrites - how to handle two seperate years?
I need to do rewrites so that the pages:
http://www.example.com/page-one
http://www.example.com/page-two
http://www.example.com/page-three
http://www.example.com/page-four
are only available from 25th December 2011 to 31st January 2012
How can I achieve this? I have been playing around with TIME_MON, TIME_DAY, TIME_YEAR and I am getting confused on how it will handle two separate months, two separate years, between 25 Dec 2011 and 31 Jan 2012
RewriteCond %{TIME_YEAR} ^2011
RewriteCond %{TIME_MON} ^12
RewriteCond %{TIME_DAY} >24
RewriteRule ^/page-one/?$ /folder/page-one [PT]
RewriteRule ^/page-two/?$ /folder/page-two [PT]
RewriteRule ^/page-three/?$ /folder/page-three [PT]
RewriteRule ^/page-four/?$ /folder/page-four [PT]
RewriteCond %{TIME_YEAR} ^2012
RewriteCond %{TIME_MON} ^01
RewriteCond %{TIME_DAY} >01
RewriteRule ^/page-one/?$ /folder/page-one [PT]
RewriteRule ^/page-two/?$ /folder/page-two [PT]
RewriteRule ^/page-three/?$ /folder/page-three [PT]
RewriteRule ^/page-four/?$ /folder/page-four [PT]