GeoffreyF67
GeoffreyF67

Reputation: 11141

How do I use POST with htaccess rewriterule?

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

RewriteRule ^Signup$ /dst2/signup.php

I would like to use POST instead 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?

Upvotes: 0

Views: 334

Answers (1)

Matchu
Matchu

Reputation: 85802

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.

Upvotes: 3

Related Questions