# the document root -- /var/www/data/project/web DocumentRoot /var/www/data/project/web # add types for .owl and .rdf AddType application/rdf+xml .owl AddType application/rdf+xml .rdf # Rewrite the 'ontology' directory ReWriteRule ^(ontology/[^/]+/).+ $1 [R=303,L] ReWriteRule ^(ontology/[^/]+)/$ sites/default/files/$1.owl [L] # Allow overrides of symlinks Options Indexes FollowSymLinks AllowOverride All Require all granted ErrorLog /dev/stderr CustomLog /dev/stdout combined