Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would act something when you request the server sends the 5minutes to a script the server so it can do something.

I have an apache 2.2.17 server running on arch Linux.

share|improve this question
up vote 1 down vote accepted

If you have mod_rewrite enabled, you can add an .htaccess file to catch everything with the following rules / configuration:

RewriteEngine On
RewriteRule (.*) yourmainscriptfile.php?timer=$1

This would forward every REQUEST_URI to that single script and place it as a value of the timer $_GET variable.

share|improve this answer
Thanks that worked great. I also found this link which helped me understand mod_rewrite a little better. – giodamelio Mar 27 '11 at 6:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.