Skip to content

Commit a86fe79

Browse files
committed
Try to prefer index.php over index.html in the same directory
Add JS redirect if that fails (HTTP-based redirects are disabled by default in more recent Firefox versions).
1 parent 9dde43d commit a86fe79

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: .htaccess

+3
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@ RewriteRule ^remote/(.*) remote.php [QSA,L]
3232
AddType image/svg+xml svg svgz
3333
AddEncoding gzip svgz
3434
</IfModule>
35+
<IfModule dir_module>
36+
DirectoryIndex index.php index.html
37+
</IfModule>
3538
AddDefaultCharset utf-8
3639
Options -Indexes

Diff for: index.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<script type="text/javascript"> window.location.href="index.php"; </script>
45
<meta http-equiv="refresh" content="0; URL=index.php">
56
</head>
67
</html>

0 commit comments

Comments
 (0)