Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 .htaccess 设置为在出现 404 错误时指向 index.php, ErrorDocument 404 /index.php 如果 url 不是数据库中的页面,则 index.php 将返回 404,否则会显示正确的页面。
ErrorDocument 404 /index.php
我怎样才能得到这里发送的任何 $_POST 数据?
我设法通过使用以下方法解决了这个问题:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-s RewriteRule .* index.php
感谢马里奥让我走上了正确的道路。