forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
46 lines (35 loc) · 1.95 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
# Turn off MultiViews
Options -MultiViews
# Directive to ensure *.rdf *.owl files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf .owl
# Rewrite engine setup
RewriteEngine On
# Rewrite rule to serve HTML content from the vocabulary URI if requested
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 ^$ http://doc.biblissima-condorcet.fr/ontologie/bibma/ [R=303,L]
# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ http://doc.biblissima-condorcet.fr/ontologie/bibma.owl [R=303,L]
# Rewrite rule to serve directed HTML content from class/prop URIs
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 ^(.+)$ http://doc.biblissima-condorcet.fr/ontologie/bibma/#base:$1 [R=303,NE]
# Rewrite rule to serve RDF/XML content from class/prop URIs
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^(.+)$ http://doc.biblissima-condorcet.fr/ontologie/bibma.owl [R=303,L]
# Choose the default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
# RewriteRule ^$ http://doc.biblissima-condorcet.fr/ontologie/bibma.owl [R=303]
# Rewrite rule to serve HTML content from the vocabulary URI by default (disabled)
# (To enable this option, uncomment the rewrite rule below, and comment
# out the rewrite rule directly above)
# Default Rule
RewriteRule ^$ http://doc.biblissima-condorcet.fr/ontologie/bibma/ [R=303,L]
#RewriteRule ^/(.+) http://doc.biblissima-condorcet.fr/ontologie/bibma/#base:$1 [R=303,NE]