For the following URL:
http://www.example.com/test.html?2006
I want mod rewrite to say: If the current year (Today is March 15th, 2006) is passed inside the query string, then do a rewrite to apache.org.
I absolutly cannot get this to work.
Here's the code I tried:
------
RewriteCond %{TIME_YEAR} %{QUERY_STRING}
RewriteRule ^.*$ http://www.apache.org [R]
------
I need to perform this task using mod_rewrite (I can't use php or perl etc).
Help!
Thank you,
Jon