Power Type and Content Type

I have a folder with some sql files that I would like to process as PHP, and I would like the result to be text / plain. I can get sql files to process PHP like this:

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

Is there a way to set the default content type when these files are used as text / plain? Or should I use an object headerin files?

+3
source share
1 answer
RewriteRule ^(.+\.sql)$ $1 [T=text/plain]
+2
source

Source: https://habr.com/ru/post/1768997/


All Articles