-
Notifications
You must be signed in to change notification settings - Fork 1
/
apache.conf
23 lines (20 loc) · 1.82 KB
/
apache.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Rewrite rules for the https://linked.data.gov.au/def/phs persistent identifier
# Implemented by the Australian Government Linked Data Working Group's Persistent ID server (see http://www.linked.data.gov.au)
# Dept Ag, Water & Environment's Plant Health Surveillance ontology
# http://linked.data.gov.au/def/phs
RewriteRule ^/def/phs/voc(.*)$ http://dawe.surroundaustralia.com/object?uri=https://linked.data.gov.au/def/phs/voc$1 [QSA,L,R=302]
RewriteCond %{QUERY_STRING} ^_format=text/turtle$ [OR]
RewriteCond %{HTTP:Accept} text/turtle [NC]
RewriteRule ^/def/phs/profile https://raw.githack.com/AGLDWG/phs-ont/master/profile.ttl [R=302,L]
RewriteRule ^/def/phs/profile.ttl$ https://raw.githack.com/AGLDWG/phs-ont/master/profile.ttl [R=302,L]
RewriteRule ^/def/phs/profile https://raw.githack.com/AGLDWG/phs-ont/master/profile.html [R=302,L]
RewriteRule ^/def/phs/([0-9\.]+)$ https://raw.githack.com/AGLDWG/phs-ont/$1/phs.html [R=302,L]
RewriteCond %{QUERY_STRING} _profile=prof [OR]
RewriteCond %{QUERY_STRING} _profile=https://www.w3.org/TR/dx-prof/ [OR]
RewriteCond %{HTTP:Accept-Profile} \<https://www.w3.org/TR/dx-prof/\>
RewriteRule ^/def/phs(.*)$ https://raw.githubusercontent.com/AGLDWG/phs-ont/master/alignments/profiles.ttl [R=302,L]
RewriteCond %{QUERY_STRING} ^_mediatype=text/turtle$ [OR]
RewriteCond %{HTTP:Accept} text/turtle [NC]
RewriteRule ^/def/phs(.*)$ https://raw.githack.com/AGLDWG/phs-ont/master/phs.ttl? [R=302,L]
RewriteRule ^/def/phs(.*).ttl$ https://raw.githack.com/AGLDWG/phs-ont/master/phs.ttl [R=302,L]
RewriteRule ^/def/phs(.*)$ https://raw.githack.com/AGLDWG/phs-ont/master/phs.html$1 [R=302,L]