Move vocab htaccess to test-suite directory.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Fri, 23 Aug 2013 18:01:25 -0700
changeset 1921 ac9c03b2ce32
parent 1920 31ff65ad10ba
child 1922 da45fd42ef7f
Move vocab htaccess to test-suite directory.
.htaccess
test-suite/.htaccess
--- a/.htaccess	Fri Aug 23 20:56:21 2013 -0400
+++ b/.htaccess	Fri Aug 23 18:01:25 2013 -0700
@@ -3,35 +3,3 @@
    SetHandler default_handler
    Header set Access-Control-Allow-Origin "*"
 </FilesMatch>
-
-# Turn off MultiViews
-Options -MultiViews
-
-# Directive to ensure *.ttl and .jsonld files served appropriately
-AddType text/turtle .ttl
-AddType application/ld+json .jsonld
-
-# Rewrite engine setup
-RewriteEngine On
-RewriteBase /test-suite
-
-# 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 ^vocab$ vocab.html [R=303]
-
-# Rewrite rule to serve Turtle content from the vocabulary URI if requested
-RewriteCond %{HTTP_ACCEPT} text/turtle
-RewriteRule ^vocab$ vocab.ttl [R=303]
-
-# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
-RewriteCond %{HTTP_ACCEPT} application/ld+json
-RewriteRule ^vocab$ vocab.jsonld [R=303]
-
-# Choose the default response
-# ---------------------------
-
-# Rewrite rule to serve the HTML content from the vocabulary URI by default
-RewriteRule ^vocab$ vocab.ttl [R=303]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/.htaccess	Fri Aug 23 18:01:25 2013 -0700
@@ -0,0 +1,37 @@
+<FilesMatch "(\.jsonld)$">
+   ForceType application/ld+json
+   SetHandler default_handler
+   Header set Access-Control-Allow-Origin "*"
+</FilesMatch>
+
+# Turn off MultiViews
+Options -MultiViews
+
+# Directive to ensure *.ttl and .jsonld files served appropriately
+AddType text/turtle .ttl
+AddType application/ld+json .jsonld
+
+# Rewrite engine setup
+RewriteEngine On
+RewriteBase /test-suite
+
+# 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 ^vocab$ vocab.html [R=303]
+
+# Rewrite rule to serve Turtle content from the vocabulary URI if requested
+RewriteCond %{HTTP_ACCEPT} text/turtle
+RewriteRule ^vocab$ vocab.ttl [R=303]
+
+# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
+RewriteCond %{HTTP_ACCEPT} application/ld+json
+RewriteRule ^vocab$ vocab.jsonld [R=303]
+
+# Choose the default response
+# ---------------------------
+
+# Rewrite rule to serve the HTML content from the vocabulary URI by default
+RewriteRule ^vocab$ vocab.ttl [R=303]