Better fix for MIME
rodzic
a2f29eb70e
commit
16ecc9b363
|
@ -10,9 +10,5 @@ Options -Indexes
|
|||
RewriteRule ^(.*)$ index.php?path=$1 [QSA,L]
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
# Make all /post/*.json served with correct MIME
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_URI} ^/posts/
|
||||
RewriteRule ^ - [T=application/activity+json]
|
||||
</IfModule>
|
||||
# Serve JSON documents with the correct MIME types
|
||||
AddType application/activity+json .json
|
||||
|
|
Ładowanie…
Reference in New Issue