.htaccess POST数据被阻塞


.htaccess POST data blocked

我将POST数据从表单发送到根索引,该根索引将重定向:

<form action="index.php?menu=blog&section=admin" method="post">

但是这一行在。htaccess块POST data:

RewriteCond %{HTTP_HOST} ^example'.com$
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L]

我试过一些其他的,但同样的问题:

#RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]
#RewriteRule (.*) http://www.example.com/$1 [QSA,L,R=301]
#RewriteRule ^(.*) www.example.com/$1 [QSA,L,R=301]
#RewriteRule ^(.*) http://www.example.com/$1 [QSA,NC,P] #Doesn't rewrite "www"

有一些其他的帖子有类似的问题,但我没有找到我的解决方案

如何发送POST数据到index.php?menu=blog&section=admin ?

试试这些规则

重写product.php吗?Id =12 ~ product-12.html

  RewriteEngine on
  RewriteRule ^product-([0-9]+)'.html$ product.php?id=$1

重写product.php吗?Id =12 to product/ipod-nano/12.html

  RewriteEngine on
  RewriteRule ^product/([a-zA-Z0-9_-]+)/([0-9]+)'.html$ product.php?id=$2

将非www URL重定向到www URL

  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^viralpatel'.net$
  RewriteRule (.*) http://www.viralpatel.net/$1 [R=301,L]

将yoursite.com/user.php?username=xyz改写为yoursite.com/xyz

  RewriteEngine On
  RewriteRule ^([a-zA-Z0-9_-]+)$ user.php?username=$1
  RewriteRule ^([a-zA-Z0-9_-]+)/$ user.php?username=$1

将域重定向到inside public_html的新子文件夹

  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^test'.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www'.test'.com$
  RewriteCond %{REQUEST_URI} !^/new/
  RewriteRule (.*) /new/$1