elpbatista/Pangea/master/code/web/.htaccess
# Turn off MultiViews
Options -MultiViews
#Options +FollowSymlinks
# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType image/gif .gif .GIF
AddType image/jpeg .jpeg .jpg .jpe .JPG
AddType image/tiff .tiff .tif
# Rewrite engine setup
RewriteEngine On
RewriteBase /web
# 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} !image/.*
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml+xml [OR]
#RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^resource/(.+) /?_ids=$1 [R=303]
# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
#RewriteCond %{HTTP_ACCEPT} image/.*
RewriteRule ^resource/(.+) /content_negociation.php?id=$1 [R=303]
#RewriteRule ^resource/(.+) /content_negociation.php?id=$1 [L,R=303]
On Github License
Files
Download PDF of Htaccess file