platform.tpl.php 532 Bytes
Newer Older
1
<Directory <?php print $this->root; ?>>
2 3 4
    Order allow,deny
    Allow from all
<?php print $extra_config; ?>
5

6 7 8 9 10 11
  <IfModule mod_rewrite.c>
    RewriteEngine on
    # allow files to be accessed without /sites/fqdn/
    RewriteRule ^files/(.*)$ /sites/%{HTTP_HOST}/files/$1 [L]
  </IfModule>

12 13 14 15 16 17 18 19 20 21
<?php
  if (file_exists("{$this->root}/.htaccess")) {
    print "\n# Include the platform's htaccess file\n";
    print "Include {$this->root}/.htaccess\n";
  }
?>

  # Do not read the platform's .htaccess
  AllowOverride none

22 23
</Directory>