Skip to content

Commit

Permalink
Udate .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
bosforox committed Dec 28, 2018
1 parent 2afb587 commit 5c030f7
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions yxl/.htaccess
@@ -1,3 +1,6 @@
# Ontology Extensions of Mehmed Yüksel
# https://w3id.org/yxl/...

Header set Access-Control-Allow-Origin *
Options +FollowSymLinks

Expand All @@ -11,17 +14,23 @@ AddType text/turtle .ttl

RewriteEngine on

#Rewrite rules for Korkut extension
#Rewrite rules for me extension (temp link)
RewriteRule "^(.*)$" "https://robotik.dfki-bremen.de/en/about-us/staff/meyu01.html" [R=302,L]


#Rewrite rules for Korcut 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 ^korkut$ https://raw.githubusercontent.com/bosforox/korkut/master/ontology/document [R=303,NE,L]

RewriteRule ^korcut/wiki$ https://github.com/bosforox/KORCUT/wiki [R=303,L]
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
RewriteRule ^korkut$ https://raw.githubusercontent.com/bosforox/korkut/master/ontology/korkut.owl [R=303]
#RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.*
#RewriteRule ^korkut$ https://raw.githubusercontent.com/bosforox/korkut/master/ontology/korkut.ttl [R=303,NE,L]
RewriteRule ^korcut$ https://raw.githubusercontent.com/bosforox/KORCUT/master/ontology/korcut.owl [R=303,L]
RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.*
RewriteRule ^korcut$ https://raw.githubusercontent.com/bosforox/korcut/master/ontology/kockut.ttl [R=303,L]
#default response: owl
#RewriteRule ^korkut$ https://raw.githubusercontent.com/bosforox/korkut/master/ontology/korkut.owl [R=303]
RewriteRule ^korcut$ https://raw.githubusercontent.com/bosforox/KORCUT/master/ontology/korcut.owl [R=302,L]

0 comments on commit 5c030f7

Please sign in to comment.