.htaccess htaccess通过POST机制传递参数
有两个htaccess问题,希望您能帮助我: 1) 为什么这些命令不起作用:.htaccess htaccess通过POST机制传递参数,.htaccess,mod-rewrite,post,.htaccess,Mod Rewrite,Post,有两个htaccess问题,希望您能帮助我: 1) 为什么这些命令不起作用: RewriteRule ^(.*)\/Bing$ http://$1 [NC,L,R=301] RewriteRule ^(.*)\/Bing\/(.*)$ http://$1/$2 [NC,L,R=301] 虽然这些方法确实有效: RewriteRule ^(.*)\/Bing$ http://www.myDomain.com [NC,L,R=301] RewriteRule ^(.*)\/Bing\/(.*)$
RewriteRule ^(.*)\/Bing$ http://$1 [NC,L,R=301]
RewriteRule ^(.*)\/Bing\/(.*)$ http://$1/$2 [NC,L,R=301]
虽然这些方法确实有效:
RewriteRule ^(.*)\/Bing$ http://www.myDomain.com [NC,L,R=301]
RewriteRule ^(.*)\/Bing\/(.*)$ http://www.myDomain.com /$2 [NC,L,R=301]
2) 我想使用htaccess进行以下操作:
什么时候
当前url=POST
HTTP_REFERER=//www.myDomain.com/3
{Param2=x(某些常量值)}
将默默地转换为
发布(不获取!)
{Param1=3,Param2=x(与操作前保持相同)}
提前感谢您的帮助