Rewrite HTTP GET request to POST in Apache using htaccess Rewrite HTTP GET request to POST in Apache using htaccess apache apache

Rewrite HTTP GET request to POST in Apache using htaccess


Is it possible to transform GET http://website/action1?param=1 into POST http://website/action2, with param being part of post request, using .htaccess?

No, this isn't possible. A GET and a POST are entirely different requests, with different request headers and different responses. The rewrite engine only affects the URI and can't change the actual request. You're going to have to rely on Javascript on the browser's end.