Friday, April 2, 2010

.htaccess : Sending requests to a php script

This .htaccess rewrite example invisibly rewrites requests for all Adobe pdf files to be handled by /cgi-bin/pdf-script.php

RewriteRule ^(.+)\.pdf$ /cgi-bin/pdf-script.php?file=$1.pdf [L,NC,QSA]

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home