Php .htaccess POST数据被阻止
我将POST数据从表单发送到我的根索引,该索引将重定向:Php .htaccess POST数据被阻止,php,.htaccess,post,Php,.htaccess,Post,我将POST数据从表单发送到我的根索引,该索引将重定向: <form action="index.php?menu=blog§ion=admin" method="post"> 我试过其他几种方法,但都有同样的问题: #RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301] #RewriteRule (.*) http://www.example.com/$1 [QSA,L,R=301] #RewriteR
<form action="index.php?menu=blog§ion=admin" method="post">
我试过其他几种方法,但都有同样的问题:
#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"
还有其他一些帖子也有类似的问题,但我没有找到解决办法
如何将帖子数据发送到index.php?menu=blog§ion=admin
谢谢大家! 试试这些规则
将product.php?id=12重写为product-12.html
RewriteEngine on
RewriteRule ^product-([0-9]+)\.html$ product.php?id=$1
将product.php?id=12重写为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
将域重定向到内部public_html的新子文件夹
RewriteEngine On
RewriteCond %{HTTP_HOST} ^test\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.test\.com$
RewriteCond %{REQUEST_URI} !^/new/
RewriteRule (.*) /new/$1
RewriteEngine On
RewriteCond %{HTTP_HOST} ^test\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.test\.com$
RewriteCond %{REQUEST_URI} !^/new/
RewriteRule (.*) /new/$1