Apache – Request uri md5

.htaccessapache-2.2

Is it possible to create an md5 hash string of current request uri and assign it as a env variable so I can read it from PHP?

Best Answer

I don't test, but you may try:

RewriteEngine on
RewriteMap md5create prg:/usr/local/sbin/md5create.pl
RewriteRule ^(.*) %{REQUEST_URI} [E=MD5HASH:${md5create:$1}]

md5create.pl script to create md5sum