Skip to content

Commit

Permalink
added .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarboni committed Dec 11, 2018
1 parent bb01c4c commit e381904
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions sari/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Turn off MultiViews
Options -MultiViews

# Rewrite engine setup
RewriteEngine On

# Rewrite rule to serve HTML content
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 ^$ https://swissartresearch.net/ontology/sari [R=303,L]

# Rewrite rule to serve RDF/XML content if requested
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml [OR]
RewriteCond %{HTTP_ACCEPT} application/owl\+xml
RewriteRule ^$ https://swissartresearch.net/ontology/sari.rdfs.xml [R=303,L]


# Choose the default response
# ---------------------------
# Default Rule
RewriteRule ^$ https://swissartresearch.net/ontology/sari.rdfs.xml [R=303,L]
6 changes: 6 additions & 0 deletions sari/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Swiss Art Research Infrastracture
List of SARI properties to expand CIDOC-CRM

Documentation available in [the website](https://swissartresearch.net/ontology/sari/).


0 comments on commit e381904

Please sign in to comment.