-
Notifications
You must be signed in to change notification settings - Fork 7
/
.htaccess
68 lines (51 loc) · 2.48 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# From http://www.w3.org/TR/swbp-vocab-pub/#recipe4
Options -MultiViews
AddType application/rdf+xml .rdf .owl
AddType text/plain .ttl
RewriteEngine On
AddCharset utf-8 .txt .log .ttl .html
##################
# Rewrite rule if *.owl, .ttl or .ttl files are requested
##################
RewriteRule \.(owl|rdf|html|ttl|nt|txt|md|png)$ - [L]
##################
# Rewrite rule to serve text/html content if requested
##################
RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^(nif-core|nif-stanford)$ /nlp2rdf/ontologies/nif-core/$1.html [R=303,L]
## RewriteCond %{HTTP_ACCEPT} text/html
## RewriteRule ^nif-core$ /nlp2rdf/ontologies/nif-core/nif-core.html [R=303,L]
## RewriteCond %{HTTP_ACCEPT} text/html
## RewriteRule ^nif-stanbol$ /nlp2rdf/ontologies/nif-core/nif-stanbol.html [R=303,L]
RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^rlog$ /nlp2rdf/ontologies/rlog/rlog.html [R=303,L]
RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^stc$ /nlp2rdf/ontologies/testcase/stc.html [R=303,L]
RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^vm/dep/stanford$ /nlp2rdf/ontologies/vm/dep/stanford.html [R=303,L]
RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^vm/lexo$ /nlp2rdf/ontologies/vm/lexo/lexo.html [R=303,L]
##################
# Rewrite rule to serve RDF/XML content if requested
##################
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^nif-core$ /nlp2rdf/ontologies/nif-core/nif-core.owl [R=303,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^nif-stanbol$ /nlp2rdf/ontologies/nif-core/nif-stanbol.owl [R=303,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^rlog$ /nlp2rdf/ontologies/rlog/rlog.owl [R=303,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^stc$ /nlp2rdf/ontologies/testcase/stc.owl [R=303,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^vm/dep/stanford$ /nlp2rdf/ontologies/vm/dep/stanford.owl [R=303,L]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^vm/lexo$ /nlp2rdf/ontologies/vm/lexo/lexo.owl [R=303,L]
#################
# Default
#################
RewriteRule ^nif-core$ /nlp2rdf/ontologies/nif-core/nif-core.ttl [R=303,L]
RewriteRule ^nif-stanbol$ /nlp2rdf/ontologies/nif-core/nif-stanbol.ttl [R=303,L]
RewriteRule ^rlog$ /nlp2rdf/ontologies/rlog/rlog.ttl [R=303,L]
RewriteRule ^stc$ /nlp2rdf/ontologies/testcase/stc.ttl [R=303,L]
RewriteRule ^vm/dep/stanford$ /nlp2rdf/ontologies/vm/dep/stanford.ttl [R=303,L]
RewriteRule ^vm/lexo$ /nlp2rdf/ontologies/vm/lexo/lexo.ttl [R=303,L]