【发布时间】:2013-01-01 17:00:22
【问题描述】:
我有一个index.php 文件,它处理对服务器的所有请求。我以这种方式在.htaccess 中设置了 404 错误重定向:
ErrorDocument 404 /index.php
如果用户请求一个文件,比如page.php,那么它会被正确地重定向到index.php 页面。
当用户请求page.php?page=about, then my index.php is unable to retrieve the queryaboutusing$_REQUEST['page']`时出现问题。
如何使用$_REQUEST['page'] 通过index.php 获取查询about?
【问题讨论】: