Skip to content

Commit 2371329

Browse files
authored
Update .htaccess
1 parent 0a66397 commit 2371329

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Diff for: CPSWatch/.htaccess

+9-5
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,31 @@ RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+
1616
RewriteCond %{HTTP_ACCEPT} text/html [OR]
1717
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
1818
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
19-
RewriteRule ^$ https://github.com/B-Ludwig/CPSWatch [R=303,L]
19+
RewriteRule ^$ https://b-ludwig.github.io/CPSWatch/ [R=303,L]
2020

2121
# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
2222
RewriteCond %{HTTP_ACCEPT} application/ld\+json
23-
RewriteRule ^$ https://github.com/B-Ludwig/CPSWatch/blob/main/ontology/CPSWatch.jsonld [R=303,L]
23+
RewriteRule ^$ https://b-ludwig.github.io/CPSWatch/ontology.jsonld [R=303,L]
2424

2525
# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
2626
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
2727
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
28-
RewriteRule ^$ https://github.com/B-Ludwig/CPSWatch/blob/main/ontology/CPSWatch.rdf [R=303,L]
28+
RewriteRule ^$ https://b-ludwig.github.io/CPSWatch/ontology.owl [R=303,L]
29+
30+
# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
31+
RewriteCond %{HTTP_ACCEPT} application/n-triples
32+
RewriteRule ^$ https://b-ludwig.github.io/CPSWatch/ontology.nt [R=303,L]
2933

3034
# Rewrite rule to serve TTL content from the vocabulary URI if requested
3135
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
3236
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
3337
RewriteCond %{HTTP_ACCEPT} \*/turtle
34-
RewriteRule ^$ https://github.com/B-Ludwig/CPSWatch/blob/main/ontology/CPSWatch.ttl [R=303,L]
38+
RewriteRule ^$ https://b-ludwig.github.io/CPSWatch/ontology.ttl [R=303,L]
3539

3640

3741
RewriteCond %{HTTP_ACCEPT} .+
3842
RewriteRule ^(.*)$ https://github.com/B-Ludwig/CPSWatch [R=406,L]
3943
# Default response
4044
# ---------------------------
4145
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
42-
RewriteRule ^$ https://github.com/B-Ludwig/CPSWatch/blob/main/ontology/CPSWatch.rdf [R=303,L]
46+
RewriteRule ^$ https://b-ludwig.github.io/CPSWatch/ [R=303,L]

0 commit comments

Comments
 (0)