forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
28 lines (23 loc) · 1.11 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
# Turn off MultiViews
Options +FollowSymLinks -MultiViews
# Directive to ensure *.rdf *.owl *.jsonld *.ttl files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf .owl
AddType text/turtle .ttl
AddType application/ld+json .jsonld
# Rewrite engine setup
RewriteEngine On
# Rewrite rule to serve HTML content from the vocabulary URI if requested
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 ^docs$ https://faiqmiftakhul.github.io/charity-organization-doc/ [R=303,L]
# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml [OR]
RewriteCond %{HTTP_ACCEPT} application/owl\+xml
RewriteRule ^owl$ https://faiqmiftakhul.github.io/charity_org_rdf_new.owl [R=303,L]
# Choose the default response
# ---------------------------
# Default Rule
RewriteRule ^owl$ https://faiqmiftakhul.github.io/charity_org_rdf_new.owl [R=303,L]