0

I would like to have pretty 404 pages, as well as other error pages.

I redirected all the errors (400, 401, 403, 404, 500, 502, 504) to my error.php.

Apache provides a lot of information in $_SERVER variable.

Do you know if there is good a ready script I can use for my error pages?

4

2 回答 2

2

I think the only important information you need is REDIRECT_STATUS and REQUEST_URI.

于 2009-07-13T20:21:32.820 回答
0

您可以访问您的 apache 配置吗?如果是这样,只需指定自定义文件(404.html、500.html 等)并使用适当的 HTML 和 CSS 填充它们,使它们像你喜欢的那样“漂亮”。还是这里有更多问题?

于 2009-07-13T22:16:22.743 回答