I have a .htaccess file set up to define specific MIME types in directory root/a/b/, and all of the files are in the same directory.
I have a php file that wants to serve those files, in directory root/c/, and needs to determine the content-type as defined by the .htaccess file.
Is there any way to do this? PHP version is 5.1.6. mime_content_type
returns text/plain
, and I'd rather not try to parse the .htaccess file manually. I can move the file if necessary.