How to get `$_POST` query when 404 redirected through .htaccess?

前端 未结 3 679
别跟我提以往
别跟我提以往 2021-01-18 08:29

This question is somewhat related to my previous question. The trick of using $_SERVER[\'REDIRECT_QUERY_STRING\'] seems to work only for $_GET var

3条回答
  •  天涯浪人
    2021-01-18 08:59

    Use the FallbackResource directive instead of the ErrorDocument directive of Apache: it does the trick FallbackResource on Apache website

    Example:

    FallbackResource /404.php
    

提交回复
热议问题