Skip to content

Commit e8dc316

Browse files
authored
Merge pull request #257 from opendata-swiss/use_correct_mime_type
Tell Apache to serve .ttl as UTF-8
2 parents 706ebdc + d843231 commit e8dc316

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apache/.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ RewriteCond %{HTTP:Accept} text/html
3535
RewriteRule ^vocabulary/licenses/(.*) /vocabulary/licenses/20240716.html#$1 [L,NE,R=303]
3636
RewriteCond %{HTTP:Accept} text/html
3737
RewriteRule ^vocabulary/publishers/(.*) /vocabulary/publishers/20210623.html#$1 [L,NE,R=303]
38+
39+
# Serve Turtle files with correct MIME type and UTF-8 encoding
40+
AddType text/turtle .ttl
41+
AddType application/rdf+xml .rdf
42+
AddType text/html .html
43+
AddDefaultCharset UTF-8

0 commit comments

Comments
 (0)