forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
27 lines (22 loc) · 1.02 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Turn off MultiViews
Options -MultiViews
# Rewrite engine setup
RewriteEngine On
# Rewrite rule to serve HTML content
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://iesnaola.github.io/AffectedBy/index-en.html [R=303,L]
# Rewrite rule to serve RDF/XML content if requested
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml [OR]
RewriteCond %{HTTP_ACCEPT} application/owl\+xml
RewriteRule ^$ https://iesnaola.github.io/AffectedBy/ontology/ontology.xml [R=303,L]
# Rewrite rule to serve Turtle content if requested
RewriteCond %{HTTP_ACCEPT} text/n3 [OR]
RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^$ https://iesnaola.github.io/AffectedBy/ontology/ontology.ttl [R=303,L]
# Choose the default response
# ---------------------------
# Default Rule
RewriteRule ^$ https://iesnaola.github.io/AffectedBy/ontology/ontology.ttl [R=303,L]