-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
41 lines (31 loc) · 1.61 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
# Turn off MultiViews
Options -MultiViews
# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
# Rewrite engine setup
RewriteEngine On
RewriteBase /ont
# Rewrite rule to make sure we serve HTML content from the namespace 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 ^hls.owl$ http://www.essepuntato.it/lode/owlapi/reasoner/http://www.dadfha.com/ont/hls.owl [R=303,L]
# Rewrite rule to make sure we serve the RDF/XML content from the namespace URI by default
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^hls.owl$ hls-latest.owl [R=303]
# Choose the default response
RewriteRule ^hls.owl$ hls-latest.owl [R=303]
## Additional rules set for dadfha.com/ont/hls
# Rewrite rule to make sure we serve HTML content from the namespace 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 ^hls$ http://www.essepuntato.it/lode/owlapi/reasoner/http://dadfha.com/ont/hls [R=303,L]
# Rewrite rule to make sure we serve the RDF/XML content from the namespace URI by default
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^hls$ hls-latest.owl [R=303]
# Choose the default response
RewriteRule ^hls$ hls-latest.owl [R=303]