httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony VanScoy <tvans...@gmail.com>
Subject Re: [users@httpd] RewriteMap substitutions in RewriteRule
Date Mon, 15 Aug 2005 12:57:52 GMT
Thanks for all the help, I've got it working!

        RewriteEngine On
        RewriteLog "/var/log/httpd/rewrite_log"
        RewriteLogLevel 1
        RewriteMap fileName prg:/home/trion/getFilename.php
        RewriteCond %{QUERY_STRING} ^fileId\=(\d+)$
        RewriteRule ^/getfile\.php$ /pdf/${fileName:%1}? [R,L,T=application/pdf]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message