commit
ff6fb0906b
3 changed files with 8 additions and 0 deletions
|
@ -32,5 +32,8 @@ RewriteRule ^remote/(.*) remote.php [QSA,L]
|
|||
AddType image/svg+xml svg svgz
|
||||
AddEncoding gzip svgz
|
||||
</IfModule>
|
||||
<IfModule dir_module>
|
||||
DirectoryIndex index.php index.html
|
||||
</IfModule>
|
||||
AddDefaultCharset utf-8
|
||||
Options -Indexes
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript"> window.location.href="index.php"; </script>
|
||||
<meta http-equiv="refresh" content="0; URL=index.php">
|
||||
</head>
|
||||
</html>
|
||||
|
|
|
@ -828,6 +828,10 @@ class OC_Setup {
|
|||
$content.= "AddType image/svg+xml svg svgz\n";
|
||||
$content.= "AddEncoding gzip svgz\n";
|
||||
$content.= "</IfModule>\n";
|
||||
$content.= "<IfModule dir_module>\n";
|
||||
$content.= "DirectoryIndex index.php index.html\n";
|
||||
$content.= "</IfModule>\n";
|
||||
$content.= "AddDefaultCharset utf-8\n";
|
||||
$content.= "Options -Indexes\n";
|
||||
@file_put_contents(OC::$SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it
|
||||
|
||||
|
|
Loading…
Reference in a new issue