Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to use mod_rewrite to read parameters sent in POST requests. I need to check the value and process the request.



share|improve this question
add comment

2 Answers

Mod_rewrite will not work on POST variables.

You would need to use mod_security to examine, and possibly run a url-rewriting script, on any POST variables.

share|improve this answer
add comment

I don't believe that it's possible.

mod_rewrite can only work on the contents of the initial request line, headers and environment variables. Whereas the parameters of a POST request are found within the request body.

share|improve this answer
Is there a module I can use to access the request body ? –  Julien Sep 24 '09 at 11:50
@Julien: normally you would use a CGI script for that. Or some sort of web application (mod_python, mod_perl, Java servlet, PHP page, etc.) –  David Z Sep 24 '09 at 20:11
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.