开发者

How do I use POST with htaccess rewriterule?

开发者 https://www.devze.com 2022-12-31 10:42 出处:网络
I have a rewriterule in my htaccess file that looks like this: RewriteRule ^Signup$ /dst2/signup.php I would like to use POST ins开发者_运维问答tead of GET for the data that gets passed by this for

I have a rewriterule in my htaccess file that looks like this:

RewriteRule ^Signup$ /dst2/signup.php

I would like to use POST ins开发者_运维问答tead of GET for the data that gets passed by this form.

The rule above, however, sends the data as a GET.

Is there a way to use a POST with a rewriterule?


There is no way to reroute a GET action to a POST action with mod_rewrite. If you're sending a POST through a rewrite rule, it should end up being a POST when you're done. If you're sending a GET and trying to change it into a POST, change your system.

0

精彩评论

暂无评论...
验证码 换一张
取 消