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 @@ ...@@ -3,6 +3,12 @@
Allow from all Allow from all
<?php print $extra_config; ?> <?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 <?php
if (file_exists("{$this->root}/.htaccess")) { if (file_exists("{$this->root}/.htaccess")) {
print "\n# Include the platform's htaccess file\n"; print "\n# Include the platform's htaccess file\n";
...@@ -13,10 +19,5 @@ ...@@ -13,10 +19,5 @@
# Do not read the platform's .htaccess # Do not read the platform's .htaccess
AllowOverride none 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> </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