Apache2.2 mod_rewrite map function based on POST variables

Posted on

Apache2.2 mod_rewrite map function based on POST variables – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about apache-2.2, mod-rewrite, , , .

Are POST variables accessible to mod_rewrite?
I am trying to determine whether or not it is possible to perform a redirect with Apache2.2 and mod_rewrite
where the rewrite rule considers the POST variables associated with a request, and uses these values to inform
the final destination.

Solution :

No.

One of the reasons we have HTTP-POST is to keep application data out of the URL. So using something that by its definition reformats URLs to try to access that data won’t work.

mod_rewrite is for turning

www.foo.com/index.php?uglyparameter=bar

into

www.foo.com/bar

So the user doesn’t have to hurt their eyes on an ugly URL. Other uses here:
Apache Mod Rewrite Guide

Leave a Reply

Your email address will not be published.