Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

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.