Override mod_rewrite rules for barrel

This commit updates the apache configuration for the barrel to enforce
all global mod_rewrite rules before the .htaccess' mod_rewrite rules are
enabled.
This commit is contained in:
Tom Wiesing 2020-07-22 13:05:20 +02:00
parent 859fdbd0fb
commit f44693f1f2
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15

View file

@ -9,8 +9,9 @@
# Rewrite the 'ontology' directory
RewriteEngine On
ReWriteRule ^(ontology/[^/]+/).+ $1 [R=303,L]
ReWriteRule ^(ontology/[^/]+)/$ sites/default/files/$1.owl [L]
RewriteOptions InheritDownBefore
ReWriteRule ^(ontology/[^/]+/).+ $1 [R=303,END]
ReWriteRule ^(ontology/[^/]+)/$ sites/default/files/$1.owl [END]
# Allow overrides of symlinks
Options Indexes FollowSymLinks