I want to redirect a HTTP request after midnight on a certain date, so how do I change this:
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^mypage/?$ http://mysite.com/my-other-page/ [R=302,L]
So that it only happens after 2012-07-12 00:00:01
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you do not wish to do this in the framework/script, look into TIME variables for mod_rewrite:
Overview:
http://www.askapache.com/htaccess/time_hour-rewritecond-time.html
Example:
http://www.askapache.com/htaccess/mod_rewrite-variables-cheatsheet.html#TIME