Skip to content
This repository
Browse code

Adding new MIME types, a note about 404, and a PHP flag

Fixes #1062 and #1053
  • Loading branch information...
commit e49353b05f13f103dd9d267a1278f688ed451dc2 1 parent a95f300
Mike Almond authored April 24, 2012

Showing 1 changed file with 10 additions and 2 deletions. Show diff stats Hide diff stats

  1. 12  .htaccess
12  .htaccess
@@ -96,12 +96,13 @@ AddType application/javascript         js
96 96
 
97 97
 # Audio
98 98
 AddType audio/ogg                      oga ogg
99  
-AddType audio/mp4                      m4a
  99
+AddType audio/mp4                      m4a f4a f4b
100 100
 
101 101
 # Video
102 102
 AddType video/ogg                      ogv
103  
-AddType video/mp4                      mp4 m4v
  103
+AddType video/mp4                      mp4 m4v f4v f4p 
104 104
 AddType video/webm                     webm
  105
+AddType video/x-flv                    flv
105 106
 
106 107
 # SVG
107 108
 #   Required for svg webfonts on iPad
@@ -127,6 +128,8 @@ AddType application/x-xpinstall             xpi
127 128
 AddType application/octet-stream            safariextz
128 129
 AddType application/x-web-app-manifest+json webapp
129 130
 AddType text/x-vcard                        vcf
  131
+AddType application/json                    json
  132
+AddType application/x-shockwave-flash       swf
130 133
 
131 134
 
132 135
 
@@ -423,6 +426,8 @@ Options -MultiViews
423 426
 # ----------------------------------------------------------------------
424 427
 
425 428
 # You can add custom pages to handle 500 or 403 pretty easily, if you like.
  429
+# If you are hosting your site in subdirectory, adjust this accordingly
  430
+#    e.g. ErrorDocument 404 /subdir/404.html
426 431
 ErrorDocument 404 /404.html
427 432
 
428 433
 
@@ -497,6 +502,9 @@ AddCharset utf-8 .css .js .xml .json .rss .atom
497 502
 # Rename session cookie to something else, than PHPSESSID
498 503
 # php_value session.name sid
499 504
 
  505
+# Disable magic quotes (This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.)
  506
+# php_flag magic_quotes_gpc Off
  507
+
500 508
 # Do not show you are using PHP
501 509
 # Note: Move this line to php.ini since it won't work in .htaccess
502 510
 # php_flag expose_php Off

0 notes on commit e49353b

Please sign in to comment.
Something went wrong with that request. Please try again.