htaccess使用参数重定向POST请求 [英] htaccess redirect POST request with params
本文介绍了htaccess使用参数重定向POST请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
有2个htaccess问题,希望您能为我提供帮助:
1)为什么这些命令不起作用:
Hi guys,
Got 2 htaccess questions, hopefully you could help me out:
1) Why do these commands don''t work:
RewriteRule ^(.*)\/Bing$ http://$1 [NC,L,R=301]
RewriteRule ^(.*)\/Bing\/(.*)$ http://$1/$2 [NC,L,R=301]
这些起作用时:
While these do work:
RewriteRule ^(.*)\/Bing$ http://www.myDomain.com [NC,L,R=301]
RewriteRule ^(.*)\/Bing\/(.*)$ http://www.myDomain.com /$2 [NC,L,R=301]
2)我想使用htaccess进行以下操作:
什么时候
2) I want to use htaccess for the following manipulation:
when
current url =POST http://www.myDomain.com/
HTTP_REFERER = //www.myDomain.com/3
{Param2= x (some const value)}
将被默默转换为
Will be silently converted to
POST (not GET!) http://www.myDomain.com/Myservice.asmx/Foo
{Param1 = 3, Param2= x (stays the same as before manipulation)}
预先感谢您的帮助.
Thanks in advance to any assistance.
推荐答案
http://
1 [NC,L,R = 301] RewriteRule ^(.*)\/Bing \/(.*)
1 [NC,L,R=301] RewriteRule ^(.*)\/Bing\/(.*)
http://
这篇关于htaccess使用参数重定向POST请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文