-
Notifications
You must be signed in to change notification settings - Fork 6
/
.htaccess
38 lines (29 loc) · 1.46 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contact person name: Said Fathalla
# Contact person email: sm_fathalla@yahoo.com
# Artifact name: Scientific Events Ontology
# Resource location: https://raw.githubusercontent.com/saidfathalla/SEOontology/master/SEO.owl
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 semsur vocabulary
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 ^$ https://saidfathalla.github.io/SEOontology/Documentation/SEO.html [R=303,NE,L]
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
RewriteRule ^$ https://raw.githubusercontent.com/saidfathalla/SEOontology/master/SEO.owl [R=303,NE,L]
# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://raw.githubusercontent.com/saidfathalla/SEOontology/master/SEO.ttl [R=303,L]
#default response owl
RewriteRule ^$ https://raw.githubusercontent.com/saidfathalla/SEOontology/master/SEO.owl [R=303,NE,L]