views:

21

answers:

1

I have a folder with some sql files that I would like to be processed as PHP and I would like the output to be text/plain. I can force sql files to be processed by PHP like this:

<FilesMatch "\.sql$">
    ForceType application/x-httpd-php
</FilesMatch>

Is there a way I can set the default content-type when these files are served to be text/plain? Or will I have to use the header thing in the files?

+1  A: 
RewriteRule ^(.+\.sql)$ $1 [T=text/plain]
stillstanding