我有一个网站,所有的请求被静默(通过.htaccess)重定向到index.php,然后PHP用于显示正确的页面(通过解析REQUEST_URI)。
我想知道是否可以提交POST数据到一个假地址吗?
我现在有我的形式这样…
我的.htaccess规则是…
# redirect mail posting to index
RewriteRule send-mail index.php?send-mail [NC,L]
我的index.php检查isset($ _ GET [‘send-mail’]),工作正常。
这似乎删除了应该发送给它的所有POST数据。
有办法保留帖子数据吗?我不想使用GET,因为它不能发送尽可能多的信息,虽然它可能不是一个简单的查询形式的问题。
这里是我的.htaccess重定向到index.php
# serve files and dirs if they exist please, otherwise send to index
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php