]> source.dussan.org Git - nextcloud-server.git/commitdiff
Try to prefer index.php over index.html in the same directory
authorDaniel Molkentin <daniel@molkentin.de>
Wed, 24 Apr 2013 13:11:53 +0000 (15:11 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Wed, 24 Apr 2013 13:11:53 +0000 (15:11 +0200)
Add JS redirect if that fails (HTTP-based redirects are disabled by
default in more recent Firefox versions).

.htaccess
index.html

index 463b49993e6062ebdb2bb805944bdf6280a09951..201e0d605b72dc893a5680df1f89328a31912386 100755 (executable)
--- a/.htaccess
+++ b/.htaccess
@@ -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
index 69d42e3a0b37a0368482f8a776804faba34c4d36..f160f46b6fc2bf9a7c1351dde07695afb1e249f2 100644 (file)
@@ -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>