Apache'Catch All'

当你请求http://e.ggtimer.com/时,我会采取行动http://e.ggtimer.com/服务器发送5minutes的脚本服务器,所以它可以做一些事情。

我有一个运行在Linux上的apache 2.2.17服务器。

如果你启用了mod_rewrite,你可以添加一个.htaccess文件,用下面的规则/configuration来捕获所有的东西:

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

这会将每个REQUEST_URI转发给该单个脚本,并将其作为定时器$ _GETvariables的值。