Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would act something http://e.ggtimer.com/ when you request http://e.ggtimer.com/5minutes 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

1 Answer 1

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. easymodrewrite.com/guide-syntax –  giodamelio Mar 27 '11 at 6:21

Your Answer

 
discard

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.