Skip to content

Commit

Permalink
Create .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
d3cebal authored Jan 30, 2020
1 parent 3d3f99e commit b3c0eb7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions alkis/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Options +FollowSymLinks
# 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
AddType application/rdf+xml .owl
# AddType text/turtle .ttl

RewriteEngine on

#Rewrite rules for ALKIS vocabulary extension
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^alkis$ https://github.com/tubav/alkis/blob/master/ [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
RewriteRule ^alkis$ https://github.com/tubav/alkis/blob/master/alkis.owl [R=303,NE,L]
# RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.*
# RewriteRule ^alkis$ https://github.com/tubav/alkis/blob/master/alkis.ttl [R=303,NE,L]

#default response: owl
RewriteRule ^coil$ https://github.com/tubav/alkis/blob/master/alkis.owl [R=303,NE,L]

0 comments on commit b3c0eb7

Please sign in to comment.