让阿帕奇处理404错误由PHP认为适当的时候? [英] Let apache handle 404 error when deemed appropriate by PHP?

查看:84
本文介绍了让阿帕奇处理404错误由PHP认为适当的时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全知道如何在PHP中创建自定义的404页,但我不知道是否有回馈控制向Apache和让它产生合适的404页的方式,发送正确的头,等时,我的逻辑这么说?

I perfectly know how to create a custom 404 page in PHP, however I'm wondering if there's a way to give back control to to apache and let it produce the proper 404 page, sending right headers, etc. when my logic says so?

我在看但似乎无法apache的一些特定功能找到任何合适的。这难道是不可能的?我记得类似于提供给例如东西由具有完全访问到Apache内部的mod_perl,这里是在PHP中的相同呢?

I'm looking at some apache specific functions but can't seem to find anything appropriate. Is that really just not possible? I recall something similar available to e.g. mod_perl by having full access to apache internals, where's that equivalent in PHP?

推荐答案

我的研究至今使我认为它不可能从mod_php的范围内后向委托阿帕奇像其他一些技术,例如结论mod_perl下,允许

My research so far led me to the conclusion that it's not possible to delegate back to Apache from within mod_php like some other technologies, e.g. mod_perl, allow.

这篇关于让阿帕奇处理404错误由PHP认为适当的时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆