php Programming Glossary: filesmatch
Setup HTTP expires headers using PHP and Apache http://stackoverflow.com/questions/1036941/setup-http-expires-headers-using-php-and-apache A0 # Set up caching on media files for 1 year forever FilesMatch . flv ico pdf avi mov ppt doc mp3 wmv wav ExpiresDefault A29030400.. A29030400 Header append Cache Control public FilesMatch For other combinations and more examples see http www.askapache.com..
.htaccess deny access to specific files? more than one http://stackoverflow.com/questions/2182936/htaccess-deny-access-to-specific-files-more-than-one exclude files based on regular expressions you could use FilesMatch instead of Files e.g. FilesMatch ^ home test file .php mysecretfolder.. expressions you could use FilesMatch instead of Files e.g. FilesMatch ^ home test file .php mysecretfolder asecretpicture .jpe g .....
Alternatives to PHP header function http://stackoverflow.com/questions/482392/alternatives-to-php-header-function server side. My .htaccess file looks something like this FilesMatch . css ForceType application x httpd php FilesMatch This causes.. this FilesMatch . css ForceType application x httpd php FilesMatch This causes a small problem as the mime type of the http response's..
htaccess access to file by ip range http://stackoverflow.com/questions/5042399/htaccess-access-to-file-by-ip-range php .htaccess share improve this question Just add a FilesMatch or Files directive to limit it to a specific script. The following.. would block acces to all scripts ending in admin.php FilesMatch admin .php Order deny allow Deny from all Allow from 10.0.0.0.. .php Order deny allow Deny from all Allow from 10.0.0.0 24 FilesMatch The following would ONLY block admin.php Files admin.php Order..
Gzip compression through .htaccess not working http://stackoverflow.com/questions/5846376/gzip-compression-through-htaccess-not-working ExpiresByType application x shockwave flash A2592000 FilesMatch . html txt ForceType 'text html charset UTF 8' FilesMatch FilesMatch.. FilesMatch . html txt ForceType 'text html charset UTF 8' FilesMatch FilesMatch . css ForceType 'text css charset UTF 8' FilesMatch.. . html txt ForceType 'text html charset UTF 8' FilesMatch FilesMatch . css ForceType 'text css charset UTF 8' FilesMatch FilesMatch..
Server not parsing .html as PHP http://stackoverflow.com/questions/6295141/server-not-parsing-html-as-php .html Or here's yet another alternative way to do this FilesMatch .html ForceType application x httpd php FilesMatch share improve..
|