Commit e80530d1 authored by anarcat's avatar anarcat Committed by anarcat

move the /files alias before the .htaccess include, otherwise it just fails to work

it's still after the $extra_config so that modules can override that
parent db4d6758
......@@ -3,6 +3,12 @@
Allow from all
<?php print $extra_config; ?>
<IfModule mod_rewrite.c>
RewriteEngine on
# allow files to be accessed without /sites/fqdn/
RewriteRule ^files/(.*)$ /sites/%{HTTP_HOST}/files/$1 [L]
</IfModule>
<?php
if (file_exists("{$this->root}/.htaccess")) {
print "\n# Include the platform's htaccess file\n";
......@@ -13,10 +19,5 @@
# Do not read the platform's .htaccess
AllowOverride none
<IfModule mod_rewrite.c>
RewriteEngine on
# allow files to be accessed without /sites/fqdn/
RewriteRule ^files/(.*)$ /sites/%{HTTP_HOST}/files/$1 [L]
</IfModule>
</Directory>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment