如何处理一个PHP脚本的所有要求? [英] How to process all requests with one php script?
本文介绍了如何处理一个PHP脚本的所有要求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用Apache2的处理由一个脚本,所有的请求?而不MODS的,如果它是可能的。
How to process with apache2 all requests by one script? Without mods if it is possible.
推荐答案
我和DocumentRoot的做到了:
I've did it with DocumentRoot:
DocumentRoot *site*/index.php
它会产生警告,但它的工作:
It generates warning, but it's working:
Warning: DocumentRoot [*site*/index.php] does not exist
这篇关于如何处理一个PHP脚本的所有要求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文