You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2013/11/18 13:01:10 UTC
svn commit: r1543008 -
/incubator/marmotta/site/trunk/content/resources/.htaccess
Author: jakob
Date: Mon Nov 18 12:01:09 2013
New Revision: 1543008
URL: http://svn.apache.org/r1543008
Log:
Disabled MultiViews to have 303 redirects on missing file extension
Modified:
incubator/marmotta/site/trunk/content/resources/.htaccess
Modified: incubator/marmotta/site/trunk/content/resources/.htaccess
URL: http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/content/resources/.htaccess?rev=1543008&r1=1543007&r2=1543008&view=diff
==============================================================================
--- incubator/marmotta/site/trunk/content/resources/.htaccess (original)
+++ incubator/marmotta/site/trunk/content/resources/.htaccess Mon Nov 18 12:01:09 2013
@@ -1,3 +1,4 @@
+Options -MultiViews
AddType application/rdf+xml .rdf
AddType text/turtle .ttl
@@ -48,7 +49,7 @@ RewriteRule ^sesame-([^/]+)$ sesame.html
RewriteRule [^/]+-reactor$ / [R=301,L]
RewriteRule [^-/]+-maven-plugin$ / [R=301,L]
-# If we get here, check for a missing .html extension
+# If we get here, check for a missing .html extension - manual multiviews with 303 redirect.
## TODO: add "real" content negotiation here? e.g for .rdf, .ttl, etc...
RewriteCond %{REQUEST_FILENAME} !\.(html|js|css|png|gif|ico)$
RewriteCond %{REQUEST_FILENAME}.html -f