EIS-Bonn/lod-make/master/data/.htaccess - Htaccess File

EIS-Bonn/lod-make/master/data/.htaccess

# 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

# 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 ^$ index.html

# Rewrite rule to serve RDF/XML content if requested
RewriteCond %{HTTP_ACCEPT} application/rdf+xml
# We are not doing a 303 redirect, as a proceedings volume is an information resource already.
RewriteRule ^$ index.rdf

# Choose the default response
RewriteRule ^$ index.html

On Github License

Files

Download PDF of Htaccess file
HTTP_ACCEPT, HTTP_USER_AGENT

Comments

Apache