by Brett » Sun Oct 21, 2001 9:39 pm
I don't think you can do this using mod_rewrite alone, unless you can come up with a way to express your calculation as a regular expression. On the other hand, you could use mod_rewrite to redirect the requests to a PHP script which would either deliver the desired document or an appropriate error message, depending on the results of whatever calculation you had in mind.