将所有流量转发到index.php并获取POST和GET请求?

时间:2014-10-27 21:28:31

标签: php apache .htaccess

我目前正在开发基于CMS的CMS引擎。首先,我将所有页面请求转发到index.php,它将经历一个引导循环并处理请求。然后,我制作了一个生成表格的模块。但是,当我使用方法POST提交表单时,不会收到数据。我不确定它是否归因于路由。或者其他形式的黑魔法。

这是我的.htaccess

Options -Indexes
Options +FollowSymLinks
ErrorDocument 404 /index.php
DirectoryIndex index.php index.html index.htm

<IfModule mod_rewrite.c>
  RewriteBase /
  RewriteRule "(^|/)\." - [F]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ index.php [L]
</IfModule>

0 个答案:

没有答案
相关问题